feat: migrate to LiteFS-supervised container architecture
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m2s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m2s
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user