From a7a35023b29c0a90abfd40bb3482af8f47c6484e Mon Sep 17 00:00:00 2001 From: Stephen von Takach Date: Thu, 14 Nov 2024 16:23:27 +1100 Subject: [PATCH] fix(Dockerfile): ensure tmp folder has the correct permissions (#274) --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02818c8d..fbfe866d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ############################################################################### @@ -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