Skip to content

Commit

Permalink
fix(Dockerfile): ensure tmp folder has the correct permissions (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach authored Nov 14, 2024
1 parent 3fafd33 commit a7a3502
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]

# Create binary directories
RUN mkdir -p repositories bin/drivers
RUN chmod 0777 repositories && chmod 0777 bin/drivers
RUN chown appuser -R /app

RUN mkdir -p /app/tmp
RUN mkdir -p /app/tmp && chmod 1777 /app/tmp

###############################################################################

Expand All @@ -86,7 +87,7 @@ COPY --from=build /usr/share/zoneinfo/ /usr/share/zoneinfo/
# Copy the app into place
COPY --from=build /app/bin /bin

COPY --from=build --chown=10001:10001 /app/tmp /tmp
COPY --from=build /app/tmp /tmp

USER appuser:appuser

Expand Down

0 comments on commit a7a3502

Please sign in to comment.