#213 - Set client file permissions in Dockerfile rather than entrypoint
authorAdam Dullage <redacted>
Sun, 7 Jul 2024 13:29:47 +0000 (14:29 +0100)
committerAdam Dullage <redacted>
Sun, 7 Jul 2024 13:29:47 +0000 (14:29 +0100)
Dockerfile
entrypoint.sh

index 3702a2f16570ec6963f34320422423b5a4e8db2c..cd19987933c2823538c9f8187863c50cd3c03b9a 100644 (file)
@@ -51,7 +51,7 @@ RUN pipenv install --deploy --ignore-pipfile --system && \
     pipenv --clear\r
 \r
 COPY server ./server\r
-COPY --from=build ${BUILD_DIR}/client/dist ./client/dist\r
+COPY --from=build --chmod=777 ${BUILD_DIR}/client/dist ./client/dist\r
 \r
 COPY entrypoint.sh healthcheck.sh /\r
 RUN chmod +x /entrypoint.sh /healthcheck.sh\r
index 1e4f8c54e3c613d507042586c8603cee7682548c..3ab186a59acd560b694e48b9bdf6e41da9bc61fa 100644 (file)
@@ -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}
git clone https://git.99rst.org/PROJECT