# Stage 1: Get LiteFS binary FROM flyio/litefs:0.5 AS litefs # Stage 2: Final image FROM ghcr.io/navidrome/navidrome:latest # Install FUSE and CA certificates (needed for LiteFS) USER root RUN apk add --no-cache fuse3 ca-certificates # Copy LiteFS binary COPY --from=litefs /usr/local/bin/litefs /usr/local/bin/litefs # Copy LiteFS configuration COPY litefs.yml /etc/litefs.yml # We'll use environment variables for most LiteFS settings, # but the baked-in config provides the structure. # LiteFS will mount the FUSE fs and then execute Navidrome. ENTRYPOINT ["litefs", "mount", "--", "/app/navidrome"]