|
|
@ -7,10 +7,10 @@ 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.03.04" |
|
|
|
#RUN wget https://github.com/yt-dlp/yt-dlp/releases/download/${YTDLP}/yt-dlp |
|
|
|
#RUN chmod +x yt-dlp |
|
|
|
FROM ${ALPINE} AS yt-dlp |
|
|
|
ENV YTDLP="2023.06.22" |
|
|
|
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 |
|
|
@ -33,7 +33,7 @@ RUN ln -s /usr/bin/python3 /release/usr/bin/python |
|
|
|
WORKDIR /release/etc/php7/php-fpm.d/ |
|
|
|
RUN sed 's?127.0.0.1:9000?/run/php-fpm.sock?' /etc/php7/php-fpm.d/www.conf > www.conf |
|
|
|
COPY --from=alltube /alltube/ /release/var/www/alltube/ |
|
|
|
#COPY --from=yt-dlp /yt-dlp /release/usr/bin/ |
|
|
|
COPY --from=yt-dlp /yt-dlp /release/usr/bin/ |
|
|
|
COPY ./init.sh /release/usr/bin/alltube |
|
|
|
COPY ./nginx/ /release/etc/nginx/ |
|
|
|
|
|
|
|