From 3f9343362590a8ed7d4da53f80d4c4326768e26d Mon Sep 17 00:00:00 2001 From: Mia Bennett Date: Wed, 5 Nov 2025 13:06:39 +0930 Subject: [PATCH] build(Dockerfile): [PPT-2278] add /tmp --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0002660..6c37137 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,6 +62,9 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"] RUN mkdir -p repositories bin/drivers tmp \ && chown appuser -R /app +# Create tmp directory with proper permissions +RUN rm -rf /tmp && mkdir -p /tmp && chmod 1777 /tmp + ############################################################################### FROM scratch AS minimal @@ -83,7 +86,9 @@ ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt COPY --from=build /usr/share/zoneinfo/ /usr/share/zoneinfo/ # configure folder permissions -COPY --from=build --chown=0:0 /app/tmp /tmp +# Copy tmp directory +COPY --from=build /tmp /tmp + COPY --from=build --chown=0:0 /app/bin/drivers /app/bin/drivers # This seems to be the only way to set permissions properly