mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
cec551c3de
Uses the package mailcap from alpine as a source for /etc/mime.types which is required by golang.org/pkg/mime on unix systems.
16 lines
371 B
Docker
16 lines
371 B
Docker
FROM alpine:latest as alpine
|
|
RUN apk --update add ca-certificates
|
|
RUN apk --update add mailcap
|
|
|
|
FROM scratch
|
|
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
|
|
|
|
COPY .docker.json /.filebrowser.json
|
|
COPY filebrowser /filebrowser
|
|
|
|
ENTRYPOINT [ "/filebrowser" ]
|