Skip to content

Commit 3f93433

Browse files
committed
build(Dockerfile): [PPT-2278] add /tmp
1 parent f265a7e commit 3f93433

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
6262
RUN mkdir -p repositories bin/drivers tmp \
6363
&& chown appuser -R /app
6464

65+
# Create tmp directory with proper permissions
66+
RUN rm -rf /tmp && mkdir -p /tmp && chmod 1777 /tmp
67+
6568
###############################################################################
6669

6770
FROM scratch AS minimal
@@ -83,7 +86,9 @@ ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
8386
COPY --from=build /usr/share/zoneinfo/ /usr/share/zoneinfo/
8487

8588
# configure folder permissions
86-
COPY --from=build --chown=0:0 /app/tmp /tmp
89+
# Copy tmp directory
90+
COPY --from=build /tmp /tmp
91+
8792
COPY --from=build --chown=0:0 /app/bin/drivers /app/bin/drivers
8893

8994
# This seems to be the only way to set permissions properly

0 commit comments

Comments
 (0)