Skip to content

Commit

Permalink
Add mailcap and mime.types to transfer.sh container
Browse files Browse the repository at this point in the history
This commit includes /etc/mime.types file to the container, which is necessary to properly select the charset using MIME typing during file upload.

For more information, read dutchcoders#545 (comment)
  • Loading branch information
snowphone committed Apr 29, 2023
1 parent b2182d0 commit 65b51cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ARG GO_VERSION=1.17
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

Expand All @@ -29,6 +29,7 @@ FROM scratch AS final
LABEL maintainer="Andrea Spacca <andrea.spacca@gmail.com>"
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
Expand Down

0 comments on commit 65b51cc

Please sign in to comment.