diff --git a/ckan/Dockerfile b/ckan/Dockerfile index 67a431ea..4f1032b7 100644 --- a/ckan/Dockerfile +++ b/ckan/Dockerfile @@ -4,11 +4,13 @@ FROM ckan/ckan-base:2.11.0 # See Dockerfile.dev for more details and examples # Copy custom initialization scripts -COPY docker-entrypoint.d/* /docker-entrypoint.d/ +COPY --chown=ckan-sys:ckan-sys docker-entrypoint.d/* /docker-entrypoint.d/ # Apply any patches needed to CKAN core or any of the built extensions (not the # runtime mounted ones) -COPY patches ${APP_DIR}/patches +COPY --chown=ckan-sys:ckan-sys patches ${APP_DIR}/patches + +USER ckan RUN for d in $APP_DIR/patches/*; do \ if [ -d $d ]; then \ diff --git a/ckan/Dockerfile.dev b/ckan/Dockerfile.dev index a8155071..d5419ba5 100644 --- a/ckan/Dockerfile.dev +++ b/ckan/Dockerfile.dev @@ -1,4 +1,4 @@ -FROM ckan/ckan-dev:2.11.0 +FROM ckan/ckan-dev:2.11.0-py3.10 # Install any extensions needed by your CKAN instance # - Make sure to add the plugins to CKAN__PLUGINS in the .env file @@ -35,11 +35,11 @@ FROM ckan/ckan-dev:2.11.0 # to get them mounted in this image at runtime # Copy custom initialization scripts -COPY docker-entrypoint.d/* /docker-entrypoint.d/ +COPY --chown=ckan-sys:ckan-sys docker-entrypoint.d/* /docker-entrypoint.d/ # Apply any patches needed to CKAN core or any of the built extensions (not the # runtime mounted ones) -COPY patches ${APP_DIR}/patches +COPY --chown=ckan-sys:ckan-sys patches ${APP_DIR}/patches RUN for d in $APP_DIR/patches/*; do \ if [ -d $d ]; then \