Document container build pattern and port navidrome #192

Merged
eblume merged 2 commits from feature/document-container-build-port-navidrome into main 2026-02-15 08:05:12 -08:00
Showing only changes of commit edab466986 - Show all commits

Switch navidrome Dockerfile to forge mirror for source clones

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Erich Blume 2026-02-15 08:05:02 -08:00

View file

@ -9,7 +9,7 @@ ARG NAVIDROME_VERSION
RUN apk add --no-cache git RUN apk add --no-cache git
RUN git clone --depth 1 --branch ${NAVIDROME_VERSION} \ RUN git clone --depth 1 --branch ${NAVIDROME_VERSION} \
https://github.com/navidrome/navidrome.git /app https://forge.ops.eblu.me/eblume/navidrome.git /app
WORKDIR /app/ui WORKDIR /app/ui
RUN npm ci RUN npm ci
@ -21,7 +21,7 @@ ARG NAVIDROME_VERSION
RUN apk add --no-cache build-base git taglib-dev RUN apk add --no-cache build-base git taglib-dev
RUN git clone --depth 1 --branch ${NAVIDROME_VERSION} \ RUN git clone --depth 1 --branch ${NAVIDROME_VERSION} \
https://github.com/navidrome/navidrome.git /app https://forge.ops.eblu.me/eblume/navidrome.git /app
WORKDIR /app WORKDIR /app
@ -39,6 +39,7 @@ FROM alpine:3.22
LABEL org.opencontainers.image.title=Navidrome LABEL org.opencontainers.image.title=Navidrome
LABEL org.opencontainers.image.description="Navidrome is a self-hosted music server and streamer" LABEL org.opencontainers.image.description="Navidrome is a self-hosted music server and streamer"
# Points to upstream canonical source, not the forge mirror used for builds
LABEL org.opencontainers.image.source=https://github.com/navidrome/navidrome LABEL org.opencontainers.image.source=https://github.com/navidrome/navidrome
RUN apk add --no-cache ca-certificates tzdata taglib ffmpeg RUN apk add --no-cache ca-certificates tzdata taglib ffmpeg