feat: use linuxserver based docker image

This commit is contained in:
Oleg Lobanov 2021-12-15 10:58:47 +01:00
parent a078f0b787
commit b8f35ce932
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
9 changed files with 68 additions and 17 deletions

View file

@ -1,4 +1,5 @@
FROM alpine:latest
FROM ghcr.io/linuxserver/baseimage-alpine:3.14
RUN apk --update add ca-certificates \
mailcap \
curl
@ -6,10 +7,10 @@ RUN apk --update add ca-certificates \
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
CMD curl -f http://localhost/health || exit 1
VOLUME /srv
EXPOSE 80
# copy local files
COPY docker/root/ /
COPY filebrowser /usr/bin/filebrowser
COPY .docker.json /.filebrowser.json
COPY filebrowser /filebrowser
ENTRYPOINT [ "/filebrowser" ]
# ports and volumes
VOLUME /srv /config /database
EXPOSE 80