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