Browse Source

build: yt-dlp version `2023.11.16`

master
Dnomd343 11 months ago
parent
commit
4541a0084a
  1. 14
      Dockerfile

14
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"]

Loading…
Cancel
Save