All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m2s
21 lines
609 B
Docker
21 lines
609 B
Docker
# 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"]
|