fixed permission issue while binding port 80

This commit is contained in:
z13 2025-08-02 09:44:48 +03:00
parent 06e8713fa5
commit 6d5c0e3872

View File

@ -12,7 +12,9 @@ COPY filebrowser /bin/filebrowser
COPY docker/common/ /
COPY docker/s6/ /
RUN chown -R abc:abc /bin/filebrowser /defaults healthcheck.sh
RUN chown -R abc:abc /bin/filebrowser /defaults healthcheck.sh && \
apk add libcap && \
setcap 'cap_net_bind_service=+ep' /bin/filebrowser
# Define healthcheck script
HEALTHCHECK --start-period=2s --interval=5s --timeout=3s CMD /healthcheck.sh