Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Dockerfile): ensure tmp folder has the correct permissions #274

Merged
merged 1 commit into from
Nov 14, 2024
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
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
Loading