From d4723599ac7163b4570a1df3a703786cb36733e3 Mon Sep 17 00:00:00 2001 From: "A. Soroka" Date: Mon, 20 Nov 2023 12:10:09 -0500 Subject: [PATCH] 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. --- postgresql/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgresql/Dockerfile b/postgresql/Dockerfile index f69e0da..4caf776 100755 --- a/postgresql/Dockerfile +++ b/postgresql/Dockerfile @@ -1,4 +1,4 @@ FROM postgres:12-alpine # Include extra setup scripts (eg datastore) -COPY docker-entrypoint-initdb.d /docker-entrypoint-initdb.d \ No newline at end of file +COPY --chown=postgres:postgres docker-entrypoint-initdb.d /docker-entrypoint-initdb.d