Browse Source

build: yt-dlp version `2023.11.16`

master
Dnomd343 1 year ago
parent
commit
4541a0084a
  1. 14
      Dockerfile

14
Dockerfile

@ -1,20 +1,17 @@
ARG ALPINE="alpine:3.15" 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 FROM ${ALPINE} AS composer
RUN apk add php-json php-phar php-mbstring php-openssl RUN apk add php-json php-phar php-mbstring php-openssl
RUN wget https://install.phpcomposer.com/installer -O - | php RUN wget https://install.phpcomposer.com/installer -O - | php
FROM ${ALPINE} AS yt-dlp 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 wget https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP}/yt-dlp
RUN chmod +x yt-dlp RUN chmod +x yt-dlp
FROM ${ALPINE} AS alltube 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-json php-phar \
RUN apk add patch php-dom php-gmp php-xml php-intl php-gettext php-simplexml php-tokenizer php-xmlwriter php-gettext php-openssl php-mbstring php-simplexml php-tokenizer php-xmlwriter
ENV ALLTUBE="3.2.0-alpha" ENV ALLTUBE="3.2.0-alpha"
RUN wget https://github.com/Rudloff/alltube/archive/${ALLTUBE}.tar.gz -O - | tar xzf - RUN wget https://github.com/Rudloff/alltube/archive/${ALLTUBE}.tar.gz -O - | tar xzf -
COPY --from=composer /composer.phar /usr/bin/composer COPY --from=composer /composer.phar /usr/bin/composer
@ -38,8 +35,9 @@ COPY ./init.sh /release/usr/bin/alltube
COPY ./nginx/ /release/etc/nginx/ COPY ./nginx/ /release/etc/nginx/
FROM ${ALPINE} FROM ${ALPINE}
RUN apk add --no-cache nginx ffmpeg python3 php-fpm php-json php-mbstring php-openssl \ RUN apk add --no-cache nginx ffmpeg python3 \
php-dom php-gmp php-xml php-intl php-gettext php-simplexml php-tokenizer php-xmlwriter 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/ / COPY --from=build /release/ /
EXPOSE 80 EXPOSE 80
ENTRYPOINT ["alltube"] ENTRYPOINT ["alltube"]

Loading…
Cancel
Save