Skip to content

🎧 Your Personal Streaming Service

feat: upgrade ffmpeg in docker image

Deluan99b1dc142105
diff --git a/Dockerfile b/Dockerfile
index 1168e390b..3535e5171 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,8 +18,7 @@ RUN apk add -U --no-cache build-base git
RUN go get -u github.com/go-bindata/go-bindata/...
# Download and unpack static ffmpeg
-ARG FFMPEG_VERSION=4.1.4
-ARG FFMPEG_URL=https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-${FFMPEG_VERSION}-amd64-static.tar.xz
+ARG FFMPEG_URL=https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
RUN wget -O /tmp/ffmpeg.tar.xz ${FFMPEG_URL}
RUN cd /tmp && tar xJf ffmpeg.tar.xz && rm ffmpeg.tar.xz
@@ -41,17 +40,23 @@ RUN GIT_SHA=$(git rev-parse --short HEAD) && \
#####################################################
### Build Final Image
-FROM alpine
+FROM alpine as release
+MAINTAINER Deluan Quintao <[email protected]>
+
COPY --from=gobuilder /src/navidrome /app/
COPY --from=gobuilder /tmp/ffmpeg*/ffmpeg /usr/bin/
+# Check if ffmpeg runs properly
+RUN ffmpeg -buildconf
+
VOLUME ["/data", "/music"]
ENV ND_MUSICFOLDER /music
ENV ND_DATAFOLDER /data
ENV ND_SCANINTERVAL 1m
ENV ND_LOGLEVEL info
ENV ND_PORT 4533
-EXPOSE 4533
+EXPOSE 4533
WORKDIR /app
-CMD "/app/navidrome"
+
+ENTRYPOINT "/app/navidrome"