Fix navidrome custom container image v1.0.2 #194

Merged
eblume merged 2 commits from fix/navidrome-container-v1.0.2 into main 2026-02-16 08:24:34 -08:00
3 changed files with 13 additions and 2 deletions

View file

@ -14,9 +14,16 @@ spec:
labels:
app: navidrome
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
containers:
- name: navidrome
image: deluan/navidrome:0.60.3
image: registry.ops.eblu.me/blumeops/navidrome:v1.0.3
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
ports:
- containerPort: 4533
name: http

View file

@ -42,10 +42,13 @@ LABEL org.opencontainers.image.description="Navidrome is a self-hosted music ser
# Points to upstream canonical source, not the forge mirror used for builds
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 \
&& addgroup -g 1000 navidrome \
&& adduser -u 1000 -G navidrome -D navidrome
COPY --from=build /navidrome /usr/bin/navidrome
EXPOSE 4533
USER 1000
CMD ["/usr/bin/navidrome"]

View file

@ -0,0 +1 @@
Switch navidrome to custom container image with dedicated non-root user and fsGroup security context