From: Adam Dullage Date: Sun, 7 Jul 2024 13:29:47 +0000 (+0100) Subject: #213 - Set client file permissions in Dockerfile rather than entrypoint X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=462dbb9b6b1288d8d6cb8af361ab9fb48e812cb6;p=flatnotes.git #213 - Set client file permissions in Dockerfile rather than entrypoint --- diff --git a/Dockerfile b/Dockerfile index 3702a2f..cd19987 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,7 @@ RUN pipenv install --deploy --ignore-pipfile --system && \ pipenv --clear COPY server ./server -COPY --from=build ${BUILD_DIR}/client/dist ./client/dist +COPY --from=build --chmod=777 ${BUILD_DIR}/client/dist ./client/dist COPY entrypoint.sh healthcheck.sh / RUN chmod +x /entrypoint.sh /healthcheck.sh diff --git a/entrypoint.sh b/entrypoint.sh index 1e4f8c5..3ab186a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -32,7 +32,6 @@ flatnotes_command="python -m \ if [ `id -u` -eq 0 ] && [ `id -g` -eq 0 ]; then echo Setting file permissions... chown -R ${PUID}:${PGID} ./ - chown -R ${PUID}:${PGID} ${FLATNOTES_PATH} echo Starting flatnotes as user ${PUID}... exec ${EXEC_TOOL} ${PUID}:${PGID} ${flatnotes_command}