Files
filebrowser/Dockerfile.s6
T

25 lines
666 B
Docker
Raw Normal View History

FROM ghcr.io/linuxserver/baseimage-alpine:3.22
2021-12-15 10:58:47 +01:00
RUN apk update && \
2025-08-16 08:01:18 +02:00
apk --no-cache add ca-certificates mailcap jq libcap
# Make user and create necessary directories
RUN mkdir -p /config /database /srv && \
chown -R abc:abc /config /database /srv
2021-12-15 10:58:47 +01:00
# Copy files and set permissions
COPY filebrowser /bin/filebrowser
COPY docker/common/ /
COPY docker/s6/ /
2021-12-15 10:58:47 +01:00
2025-08-16 08:01:18 +02:00
RUN chown -R abc:abc /bin/filebrowser /defaults healthcheck.sh && \
setcap 'cap_net_bind_service=+ep' /bin/filebrowser
2021-12-15 10:58:47 +01:00
# Define healthcheck script
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s CMD /healthcheck.sh
# Set the volumes and exposed ports
2021-12-15 10:58:47 +01:00
VOLUME /srv /config /database
EXPOSE 80