Skip to content

Commit

Permalink
dullage#213 - Set client file permissions in Dockerfile rather than e…
Browse files Browse the repository at this point in the history
…ntrypoint
  • Loading branch information
dullage committed Jul 7, 2024
1 parent 726649f commit 462dbb9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 462dbb9

Please sign in to comment.