diff --git a/service/navidrome/Containerfile b/service/navidrome/Containerfile index 9458ee9..3a488ac 100644 --- a/service/navidrome/Containerfile +++ b/service/navidrome/Containerfile @@ -1,11 +1,10 @@ FROM docker.io/debian:bookworm-slim -ARG VERSION=0.49.2 +ARG VERSION=0.49.3 ENV PACKAGE_URL https://github.com/deluan/navidrome/releases/download/v${VERSION}/navidrome_${VERSION}_Linux_x86_64.tar.gz -RUN apt-get update -y && apt-get upgrade -y && \ - apt-get install -y --no-install-recommends curl ca-certificates gosu ffmpeg && \ - curl -L ${PACKAGE_URL} | tar -C /bin --no-same-owner -xvzf - navidrome && chmod +x /bin/navidrome && \ - apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false curl +RUN apt-get update -y && apt-get upgrade -y && apt-get install -y --no-install-recommends \ + curl ca-certificates gosu ffmpeg && \ + curl -L ${PACKAGE_URL} | tar -C /bin --no-same-owner -xvzf - navidrome && chmod +x /bin/navidrome RUN addgroup --system --gid 10000 navidrome RUN adduser --system --uid 10000 --ingroup navidrome --home /var/lib/navidrome navidrome diff --git a/service/navidrome/quadlet/navidrome.container b/service/navidrome/quadlet/navidrome.container index f903992..b963dab 100644 --- a/service/navidrome/quadlet/navidrome.container +++ b/service/navidrome/quadlet/navidrome.container @@ -4,9 +4,12 @@ Wants=container-build@%N.service container-volume@%N.service After=container-build@%N.service container-volume@%N.service [Container] +AutoUpdate=local ContainerName=%N +HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:4533/ping Image=localhost/%N:latest Network=internal +PodmanArgs=--sdnotify=healthy Volume=%N:/var/lib/%N:z Volume=%N-music:/music:z,ro