Switch from standard debian image to python image for yt-dlp
This commit is contained in:
parent
efb5aa8a33
commit
8f9119d566
|
@ -26,15 +26,15 @@ RUN go build \
|
|||
-X \"$VERSION_PKG.BuiltBy=$BUILT_BY\" \
|
||||
" -o /ytdl-web .
|
||||
|
||||
FROM debian:${DEBIAN_VERSION}
|
||||
FROM python:${DEBIAN_VERSION}
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# hadolint ignore=DL3008
|
||||
RUN apt-get update \
|
||||
&& apt-get install --no-install-recommends -y wget \
|
||||
&& wget --progress=dot:giga "https://github.com/yt-dlp/yt-dlp/releases/download/$YTDLP_VERSION/yt-dlp_linux" \
|
||||
&& install -pm755 yt-dlp_linux /usr/bin/yt-dlp \
|
||||
&& wget --progress=dot:giga "https://github.com/yt-dlp/yt-dlp/releases/download/$YTDLP_VERSION/yt-dlp" \
|
||||
&& install -pm755 yt-dlp /usr/bin/yt-dlp \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=build /ytdl-web ./
|
||||
|
|
Loading…
Reference in New Issue