filebrowser/Dockerfile
2021-06-05 13:29:38 +02:00

16 lines
438 B
Docker

FROM alpine:latest
RUN apk --update add ca-certificates \
mailcap \
curl \
jq
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
CMD curl -f http://localhost:$(jq '.port' /.filebrowser.json)/health || curl -f http://localhost/health || exit 1
VOLUME /srv
EXPOSE 80
COPY .docker.json /.filebrowser.json
COPY filebrowser /filebrowser
ENTRYPOINT [ "/filebrowser" ]