From 433e66cbbbec0c109ca59fc4e5211c13371a2206 Mon Sep 17 00:00:00 2001 From: Mia Bennett Date: Wed, 5 Nov 2025 12:59:10 +0930 Subject: [PATCH] build(Dockerfile): [PPT-2278] add /tmp --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 76bec65..b82ff28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -93,6 +93,9 @@ RUN case "${TARGETARCH}" in \ wget -O /busybox https://busybox.net/downloads/binaries/1.31.0-defconfig-multiarch-musl/busybox-${ARCH} && \ chmod +x /busybox +# Create tmp directory with proper permissions +RUN rm -rf /tmp && mkdir -p /tmp && chmod 1777 /tmp + # Build a minimal docker image FROM scratch WORKDIR /app @@ -129,6 +132,9 @@ COPY --from=build /app/bin / COPY --from=build --chown=0:0 /app/www /app/www COPY --from=build --chown=0:0 /app/tmp /tmp +# Copy tmp directory +COPY --from=build /tmp /tmp + # This seems to be the only way to set permissions properly # this only works as we're copying over the dependencies for git # which includes /lib/ld-musl-* files