Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ COPY --chown=node:node schemas.js swagger.js ./
COPY --chown=node:node scripts ./scripts/
COPY docker-entrypoint.sh start-services.sh ./

RUN chmod +x docker-entrypoint.sh start-services.sh
# An explicit mode rather than +x: the entrypoint re-executes itself after the
# privilege drop, so the unprivileged user has to be able to read it, too. A
# build context that hands the files over without read permission for others
# (e.g. a Samba share with a restrictive create mask) would otherwise produce
# 0711 and a restart loop with "cannot open ./docker-entrypoint.sh".
RUN chmod 755 docker-entrypoint.sh start-services.sh

# Configure persistent data volume.
# Docker seeds a fresh named volume from the image including ownership and mode,
Expand Down
Loading