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