fix(docker): Add mime.types file

Uses the package mailcap from alpine as a source for /etc/mime.types
which is required by golang.org/pkg/mime on unix systems.
This commit is contained in:
Hadrien Dorio 2019-12-03 05:59:37 +00:00 committed by Henrique Dias
parent cb98c913d4
commit cec551c3de

View File

@ -1,8 +1,10 @@
FROM alpine:latest as certs
FROM alpine:latest as alpine
RUN apk --update add ca-certificates
RUN apk --update add mailcap
FROM scratch
COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=alpine /etc/mime.types /etc/mime.types
VOLUME /srv
EXPOSE 80