diff --git a/Dockerfile b/Dockerfile index ada4fc3..1ac34cd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ARG GO_VERSION=1.20 FROM golang:${GO_VERSION}-alpine as build # Necessary to run 'go get' and to compile the linked binary -RUN apk add git musl-dev +RUN apk add git musl-dev mailcap ADD . /go/src/github.com/dutchcoders/transfer.sh @@ -29,6 +29,7 @@ FROM scratch AS final LABEL maintainer="Andrea Spacca " ARG RUNAS +COPY --from=build /etc/mime.types /etc/mime.types COPY --from=build /tmp/empty /tmp COPY --from=build /tmp/useradd/* /etc/ COPY --from=build --chown=${RUNAS} /go/bin/transfersh /go/bin/transfersh