Browse Source

build: yt-dlp version `2023.06.22`

master
Dnomd343 2 years ago
parent
commit
59d968a607
  1. 10
      Dockerfile
  2. 4
      init.sh

10
Dockerfile

@ -7,10 +7,10 @@ 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.03.04" ENV YTDLP="2023.06.22"
#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 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/ 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 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=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 ./init.sh /release/usr/bin/alltube
COPY ./nginx/ /release/etc/nginx/ COPY ./nginx/ /release/etc/nginx/

4
init.sh

@ -6,7 +6,7 @@ NGINX_CONFIG="/etc/nginx/alltube.conf"
CONFIG="/var/www/alltube/config/config.yml" CONFIG="/var/www/alltube/config/config.yml"
sed -i "s,^audioBitrate:.*,audioBitrate: 320," "${CONFIG}" sed -i "s,^audioBitrate:.*,audioBitrate: 320," "${CONFIG}"
#sed -i "s,^youtubedl:.*,youtubedl: /usr/bin/yt-dlp," "${CONFIG}" sed -i "s,^youtubedl:.*,youtubedl: /usr/bin/yt-dlp," "${CONFIG}"
if [ -n "${PORT}" ]; then if [ -n "${PORT}" ]; then
echo "Port: ${PORT}" echo "Port: ${PORT}"
@ -36,7 +36,7 @@ if [ -n "${TITLE}" ]; then
sed -i "s,^appName:.*,appName: ${TITLE}," "${CONFIG}" sed -i "s,^appName:.*,appName: ${TITLE}," "${CONFIG}"
fi fi
#echo "yt-dlp version: $(yt-dlp --version)" echo "yt-dlp version: $(yt-dlp --version)"
echo "Alltube service is running..." echo "Alltube service is running..."

Loading…
Cancel
Save