Skip to content

Commit f0f6111

Browse files
authored
build(Dockerfile): [PPT-2278] add /tmp (#418)
1 parent db1695b commit f0f6111

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ RUN for binary in "/bin/ping" "/bin/ping6" "/usr/bin/git" /app/bin/* /usr/libexe
5151

5252
RUN git config --system http.sslCAInfo /etc/ssl/certs/ca-certificates.crt
5353

54+
# Create tmp directory with proper permissions
55+
RUN rm -rf /tmp && mkdir -p /tmp && chmod 1777 /tmp
56+
5457
# Build a minimal docker image
5558
FROM scratch
5659
WORKDIR /
@@ -72,6 +75,9 @@ ENV GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
7275
# This is required for Timezone support
7376
COPY --from=build /usr/share/zoneinfo/ /usr/share/zoneinfo/
7477

78+
# Copy tmp directory
79+
COPY --from=build /tmp /tmp
80+
7581
# this is required to ping things
7682
COPY --from=build /bin/ping /ping
7783
COPY --from=build /bin/ping6 /ping6

0 commit comments

Comments
 (0)