From 31520b1afdf22ca82e4461afdc09b589ea1573ec Mon Sep 17 00:00:00 2001 From: am97 Date: Wed, 31 Aug 2022 08:07:29 +0200 Subject: [PATCH] Add /tmp dir to Docker image (#506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #462 Co-authored-by: Andrés Maldonado --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 196ea75..cde5483 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ARG PUID=5000 \ PGID=5000 \ RUNAS -RUN mkdir -p /tmp/useradd && \ +RUN mkdir -p /tmp/useradd /tmp/empty && \ if [ ! -z "$RUNAS" ]; then \ echo "${RUNAS}:x:${PUID}:${PGID}::/nonexistent:/sbin/nologin" >> /tmp/useradd/passwd && \ echo "${RUNAS}:!:::::::" >> /tmp/useradd/shadow && \ @@ -29,6 +29,7 @@ FROM scratch AS final LABEL maintainer="Andrea Spacca " ARG RUNAS +COPY --from=build /tmp/empty /tmp COPY --from=build /tmp/useradd/* /etc/ COPY --from=build --chown=${RUNAS} /go/bin/transfersh /go/bin/transfersh COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt