# Stage 1: Get LiteFS binary FROM flyio/litefs:0.5 AS litefs # Stage 2: Final image FROM ghcr.io/navidrome/navidrome:latest # Install dependencies USER root RUN apk add --no-cache fuse3 ca-certificates bash curl # Copy LiteFS binary COPY --from=litefs /usr/local/bin/litefs /usr/local/bin/litefs # Copy scripts COPY register.sh /usr/local/bin/register.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/register.sh /usr/local/bin/entrypoint.sh # Copy LiteFS configuration COPY litefs.yml /etc/litefs.yml # LiteFS becomes the supervisor. # It will mount the FUSE fs and then execute our entrypoint script. ENTRYPOINT ["litefs", "mount", "--", "/usr/local/bin/entrypoint.sh"]