feat: use internal wrapper for consul registration
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 41s

This commit is contained in:
2026-02-07 18:14:19 -08:00
parent a10a50a6ea
commit 41874f0ace
14 changed files with 196 additions and 263 deletions

View File

@@ -4,17 +4,21 @@ 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)
# Install dependencies
USER root
RUN apk add --no-cache fuse3 ca-certificates
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
# 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"]
# LiteFS becomes the supervisor.
# It will mount the FUSE fs and then execute our entrypoint script.
ENTRYPOINT ["litefs", "mount", "--", "/usr/local/bin/entrypoint.sh"]