From cec551c3de0d333dbdf6fc19e2b03e63e701de8e Mon Sep 17 00:00:00 2001 From: Hadrien Dorio Date: Tue, 3 Dec 2019 05:59:37 +0000 Subject: [PATCH] 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. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 93fe7e50..549bd136 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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