2026-02-15 08:05:11 -08:00
|
|
|
# Navidrome music server
|
|
|
|
|
# Three-stage build: UI (Node), backend (Go+taglib), runtime (Alpine)
|
|
|
|
|
|
2026-02-20 22:50:01 -08:00
|
|
|
ARG CONTAINER_APP_VERSION=v0.60.3
|
|
|
|
|
ARG NAVIDROME_VERSION=${CONTAINER_APP_VERSION}
|
2026-02-15 08:05:11 -08:00
|
|
|
|
|
|
|
|
FROM node:22-alpine AS ui-build
|
|
|
|
|
|
|
|
|
|
ARG NAVIDROME_VERSION
|
|
|
|
|
RUN apk add --no-cache git
|
|
|
|
|
|
|
|
|
|
RUN git clone --depth 1 --branch ${NAVIDROME_VERSION} \
|
Migrate upstream mirrors to mirrors/ Forgejo org (#265)
## Summary
- Created `mirrors` Forgejo organization for upstream mirror repos
- Transferred 22 mirror repos from `eblume/` to `mirrors/` (mirror sync config preserved)
- Deleted unused repos: hajimari, hister
- Updated all container build URLs (homepage, navidrome, ntfy Dockerfiles + nix)
- Updated documentation references (migrate-forgejo-from-brew, upstream-fork-strategy, fix-ntfy-nix-version)
- `dotfiles` intentionally kept under `eblume/` per user request
- `devpi` transferred to `mirrors/`
Repos remaining under `eblume/`: blumeops, cv, mcquack, dotfiles
## Cleanup TODO
- [ ] Delete temp Forgejo API token "claude-migration-temp" (Settings > Applications)
## Test Plan
- [x] Verified mirror config (mirror=true, original_url) survived transfer on test repo (tesla_auth)
- [x] All pre-commit hooks pass (including container-version-check, docs-check-links)
- [ ] Verify a mirror repo sync runs successfully after transfer (check mirrors/authentik or similar)
- [ ] Rebuild containers from branch to verify Dockerfile URLs resolve
Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/265
2026-02-24 20:43:14 -08:00
|
|
|
https://forge.ops.eblu.me/mirrors/navidrome.git /app
|
2026-02-15 08:05:11 -08:00
|
|
|
|
|
|
|
|
WORKDIR /app/ui
|
|
|
|
|
RUN npm ci
|
|
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
|
|
FROM golang:alpine3.22 AS build
|
|
|
|
|
|
|
|
|
|
ARG NAVIDROME_VERSION
|
2026-02-15 08:17:20 -08:00
|
|
|
RUN apk add --no-cache build-base git taglib-dev zlib-dev
|
2026-02-15 08:05:11 -08:00
|
|
|
|
|
|
|
|
RUN git clone --depth 1 --branch ${NAVIDROME_VERSION} \
|
Migrate upstream mirrors to mirrors/ Forgejo org (#265)
## Summary
- Created `mirrors` Forgejo organization for upstream mirror repos
- Transferred 22 mirror repos from `eblume/` to `mirrors/` (mirror sync config preserved)
- Deleted unused repos: hajimari, hister
- Updated all container build URLs (homepage, navidrome, ntfy Dockerfiles + nix)
- Updated documentation references (migrate-forgejo-from-brew, upstream-fork-strategy, fix-ntfy-nix-version)
- `dotfiles` intentionally kept under `eblume/` per user request
- `devpi` transferred to `mirrors/`
Repos remaining under `eblume/`: blumeops, cv, mcquack, dotfiles
## Cleanup TODO
- [ ] Delete temp Forgejo API token "claude-migration-temp" (Settings > Applications)
## Test Plan
- [x] Verified mirror config (mirror=true, original_url) survived transfer on test repo (tesla_auth)
- [x] All pre-commit hooks pass (including container-version-check, docs-check-links)
- [ ] Verify a mirror repo sync runs successfully after transfer (check mirrors/authentik or similar)
- [ ] Rebuild containers from branch to verify Dockerfile URLs resolve
Reviewed-on: https://forge.ops.eblu.me/eblume/blumeops/pulls/265
2026-02-24 20:43:14 -08:00
|
|
|
https://forge.ops.eblu.me/mirrors/navidrome.git /app
|
2026-02-15 08:05:11 -08:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
# Copy pre-built UI assets
|
|
|
|
|
COPY --from=ui-build /app/ui/build /app/ui/build
|
|
|
|
|
|
|
|
|
|
ENV CGO_ENABLED=1
|
|
|
|
|
ENV CGO_CFLAGS_ALLOW="--define-prefix"
|
|
|
|
|
|
|
|
|
|
RUN go build -tags=netgo \
|
|
|
|
|
-ldflags="-w -s -X github.com/navidrome/navidrome/consts.gitTag=${NAVIDROME_VERSION}" \
|
|
|
|
|
-o /navidrome .
|
|
|
|
|
|
|
|
|
|
FROM alpine:3.22
|
|
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.title=Navidrome
|
|
|
|
|
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
|
|
|
|
|
|
2026-02-16 08:24:33 -08:00
|
|
|
RUN apk add --no-cache ca-certificates tzdata taglib ffmpeg \
|
|
|
|
|
&& addgroup -g 1000 navidrome \
|
|
|
|
|
&& adduser -u 1000 -G navidrome -D navidrome
|
2026-02-15 08:05:11 -08:00
|
|
|
|
|
|
|
|
COPY --from=build /navidrome /usr/bin/navidrome
|
|
|
|
|
|
|
|
|
|
EXPOSE 4533
|
|
|
|
|
|
2026-02-16 08:24:33 -08:00
|
|
|
USER 1000
|
2026-02-15 08:05:11 -08:00
|
|
|
CMD ["/usr/bin/navidrome"]
|