Fix ytdlp version in dockerfile
This commit is contained in:
parent
8f9119d566
commit
dd84590ac7
|
@ -1,6 +1,5 @@
|
||||||
ARG GOLANG_VERSION="1.20.11"
|
ARG GOLANG_VERSION="1.20.11"
|
||||||
ARG DEBIAN_VERSION="bookworm"
|
ARG DEBIAN_VERSION="bookworm"
|
||||||
ARG YTDLP_VERSION="2023.12.30"
|
|
||||||
|
|
||||||
FROM golang:${GOLANG_VERSION}-${DEBIAN_VERSION} AS build
|
FROM golang:${GOLANG_VERSION}-${DEBIAN_VERSION} AS build
|
||||||
|
|
||||||
|
@ -28,12 +27,14 @@ RUN go build \
|
||||||
|
|
||||||
FROM python:${DEBIAN_VERSION}
|
FROM python:${DEBIAN_VERSION}
|
||||||
|
|
||||||
|
ARG YTDLP_VERSION="2023.12.30"
|
||||||
|
|
||||||
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" \
|
&& 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 \
|
&& 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/*
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue