mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
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:
parent
cb98c913d4
commit
cec551c3de
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user