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\" \
|
-X \"$VERSION_PKG.BuiltBy=$BUILT_BY\" \
|
||||||
" -o /ytdl-web .
|
" -o /ytdl-web .
|
||||||
|
|
||||||
FROM debian:${DEBIAN_VERSION}
|
FROM python:${DEBIAN_VERSION}
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# hadolint ignore=DL3008
|
# hadolint ignore=DL3008
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --no-install-recommends -y wget \
|
&& 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" \
|
&& wget --progress=dot:giga "https://github.com/yt-dlp/yt-dlp/releases/download/$YTDLP_VERSION/yt-dlp" \
|
||||||
&& install -pm755 yt-dlp_linux /usr/bin/yt-dlp \
|
&& install -pm755 yt-dlp /usr/bin/yt-dlp \
|
||||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=build /ytdl-web ./
|
COPY --from=build /ytdl-web ./
|
||||||
|
|
Loading…
Reference in New Issue