Skip to content

Commit 7928adb

Browse files
committed
build(docker): downgrade Alpine version from 3.21 to 3.19, oldest supported version.
This is to reduce the image size, as we don't really need the latest. Signed-off-by: Deluan <deluan@navidrome.org>
1 parent 19008ad commit 7928adb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM --platform=$BUILDPLATFORM ghcr.io/crazy-max/osxcross:14.5-debian AS osxcros
22

33
########################################################################################################################
44
### Build xx (orignal image: tonistiigi/xx)
5-
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/alpine:3.21 AS xx-build
5+
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/alpine:3.19 AS xx-build
66

77
# v1.5.0
88
ENV XX_VERSION=b4e4c451c778822e6742bfc9d9a91d7c7d885c8a
@@ -26,7 +26,7 @@ COPY --from=xx-build /out/ /usr/bin/
2626

2727
########################################################################################################################
2828
### Get TagLib
29-
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/alpine:3.21 AS taglib-build
29+
FROM --platform=$BUILDPLATFORM public.ecr.aws/docker/library/alpine:3.19 AS taglib-build
3030
ARG TARGETPLATFORM
3131
ARG CROSS_TAGLIB_VERSION=2.1.0-1
3232
ENV CROSS_TAGLIB_RELEASES_URL=https://github.com/navidrome/cross-taglib/releases/download/v${CROSS_TAGLIB_VERSION}/
@@ -120,7 +120,7 @@ COPY --from=build /out /
120120

121121
########################################################################################################################
122122
### Build Final Image
123-
FROM public.ecr.aws/docker/library/alpine:3.21 AS final
123+
FROM public.ecr.aws/docker/library/alpine:3.19 AS final
124124
LABEL maintainer="deluan@navidrome.org"
125125
LABEL org.opencontainers.image.source="https://github.com/navidrome/navidrome"
126126

0 commit comments

Comments
 (0)