39 wiersze
1.1 KiB
Docker
39 wiersze
1.1 KiB
Docker
### SomeDL - Downloader di brani da YouTube con Web UI
|
|
### Based on SomeDL: https://github.com/ChemistryGull/SomeDL
|
|
###
|
|
### BUILD: podman build -t localhost/somedl:latest .
|
|
### EXPORT: podman save -o somedl.tar localhost/somedl:latest
|
|
###
|
|
FROM docker.io/library/python:3.14-slim
|
|
|
|
# Dipendenze di sistema:
|
|
# - ffmpeg: richiesto da yt-dlp per la conversione audio
|
|
# - curl/unzip: necessari allo script di installazione di Deno
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
ffmpeg \
|
|
curl \
|
|
unzip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Installazione Deno con lo script ufficiale (raccomandato da yt-dlp)
|
|
RUN curl -fsSL https://deno.land/install.sh | sh
|
|
ENV PATH="/root/.deno/bin:${PATH}"
|
|
|
|
# Installazione SomeDL
|
|
RUN pip install --no-cache-dir somedl
|
|
|
|
# Entrypoint: genera la config al primo avvio e lancia la WebUI
|
|
COPY entrypoint.sh /app/entrypoint.sh
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
# Creazione directory configurazione e download
|
|
RUN mkdir -p /root/.config/SomeDL /app/downloads
|
|
|
|
WORKDIR /app
|
|
|
|
# Volume mount point per i download
|
|
VOLUME ["/app/downloads"]
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"]
|