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.
pull/947/head
Hadrien Dorio 2019-12-03 05:59:37 +00:00 committed by Henrique Dias
parent cb98c913d4
commit cec551c3de
1 changed files with 4 additions and 2 deletions

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 ca-certificates
RUN apk --update add mailcap
FROM scratch 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 VOLUME /srv
EXPOSE 80 EXPOSE 80