From 4541a0084aebaa72acd45eccc2ad7544ef06da3b Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Tue, 19 Dec 2023 21:56:57 +0800 Subject: [PATCH] build: yt-dlp version `2023.11.16` --- Dockerfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 143969f..bf2030d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,17 @@ ARG ALPINE="alpine:3.15" -# TODO: remove php-json after php8 (>=alpine:3.16) -# TODO: /usr/bin/python already exist (>=alpine:3.17) - FROM ${ALPINE} AS composer RUN apk add php-json php-phar php-mbstring php-openssl RUN wget https://install.phpcomposer.com/installer -O - | php FROM ${ALPINE} AS yt-dlp -ENV YTDLP="2023.06.22" +ENV YTDLP="2023.11.16" RUN wget https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP}/yt-dlp RUN chmod +x yt-dlp FROM ${ALPINE} AS alltube -RUN apk add php-json php-phar php-mbstring php-openssl -RUN apk add patch php-dom php-gmp php-xml php-intl php-gettext php-simplexml php-tokenizer php-xmlwriter +RUN apk add patch php-dom php-gmp php-xml php-intl php-json php-phar \ + php-gettext php-openssl php-mbstring php-simplexml php-tokenizer php-xmlwriter ENV ALLTUBE="3.2.0-alpha" RUN wget https://github.com/Rudloff/alltube/archive/${ALLTUBE}.tar.gz -O - | tar xzf - COPY --from=composer /composer.phar /usr/bin/composer @@ -38,8 +35,9 @@ COPY ./init.sh /release/usr/bin/alltube COPY ./nginx/ /release/etc/nginx/ FROM ${ALPINE} -RUN apk add --no-cache nginx ffmpeg python3 php-fpm php-json php-mbstring php-openssl \ - php-dom php-gmp php-xml php-intl php-gettext php-simplexml php-tokenizer php-xmlwriter +RUN apk add --no-cache nginx ffmpeg python3 \ + php-dom php-fpm php-gmp php-xml php-intl php-json php-gettext \ + php-openssl php-mbstring php-simplexml php-tokenizer php-xmlwriter COPY --from=build /release/ / EXPOSE 80 ENTRYPOINT ["alltube"]