Browse Source

Switch to yt-dlp in Docker image

yt-dlp
kmille 4 weeks ago
parent
commit
956f47d919
  1. 4
      docker/Dockerfile
  2. 1
      docker/docker-compose.yaml

4
docker/Dockerfile

@ -12,11 +12,11 @@ RUN git clone https://github.com/kmille/deezer-downloader.git /opt/deezer
RUN python3 -m virtualenv -p python3 /opt/deezer/app/venv
RUN /bin/bash -c "source /opt/deezer/app/venv/bin/activate && \
pip install -r /opt/deezer/requirements.txt && \
pip install -U youtube-dl \
pip install -U yt-dlp \
pip install gunicorn"
RUN cp /opt/deezer/app/settings.ini.example /opt/deezer/app/settings.ini
RUN sed -i 's,.*command = /usr/bin/youtube-dl.*,command = /opt/deezer/app/venv/bin/youtube-dl,' /opt/deezer/app/settings.ini
RUN sed -i 's,.*command = /usr/bin/yt-dlp.*,command = /opt/deezer/app/venv/bin/yt-dlp,' /opt/deezer/app/settings.ini
RUN sed -i 's,/tmp/deezer-downloader,/mnt/deezer-downloader,' /opt/deezer/app/settings.ini
RUN useradd -s /bin/bash deezer

1
docker/docker-compose.yaml

@ -6,7 +6,6 @@ services:
build: .
environment:
- DEEZER_COOKIE_ARL=changeme
- DEEZER_FLAC_QUALITY=False
volumes:
- ./downloads:/mnt/deezer-downloader
ports:

Loading…
Cancel
Save