Update Dockerfile

Fixes: https://github.com/ckan/ckan-docker/issues/104

Adds `--chown` flag to `COPY` command in PostgreSQL Dockerfile to ensure that initialization files can be executed by `postgres` user.
This commit is contained in:
A. Soroka 2023-11-20 12:10:09 -05:00 committed by GitHub
parent b48be9783f
commit d4723599ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
FROM postgres:12-alpine
# Include extra setup scripts (eg datastore)
COPY docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
COPY --chown=postgres:postgres docker-entrypoint-initdb.d /docker-entrypoint-initdb.d