feat: migrate to LiteFS-supervised container architecture
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m2s

This commit is contained in:
2026-02-07 16:38:38 -08:00
parent 11ebd95956
commit 21598113e4
4 changed files with 196 additions and 0 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# 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"]