mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-06-19 07:42:58 +00:00
24 lines
614 B
Docker
24 lines
614 B
Docker
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.22
|
|
|
|
RUN apk update && \
|
|
apk --no-cache add ca-certificates mailcap curl jq
|
|
|
|
# Make user and create necessary directories
|
|
RUN mkdir -p /config /database /srv && \
|
|
chown -R abc:abc /config /database /srv
|
|
|
|
# Copy files and set permissions
|
|
COPY filebrowser /bin/filebrowser
|
|
COPY docker/common/ /
|
|
COPY docker/s6/ /
|
|
|
|
RUN chown -R abc:abc /bin/filebrowser /defaults healthcheck.sh
|
|
|
|
# Define healthcheck script
|
|
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s CMD /healthcheck.sh
|
|
|
|
# Set the volumes and exposed ports
|
|
VOLUME /srv /config /database
|
|
|
|
EXPOSE 80
|