modified: Dockerfile
modified: app.py modified: requirements.txt
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -3,16 +3,16 @@ FROM python:3.10-slim
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ffmpeg \
|
||||
libffi-dev \
|
||||
libnacl-dev \
|
||||
libopus0 \
|
||||
ffmpeg \
|
||||
python3-dev \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
# Ensure yt-dlp is up-to-date so extractor fixes are applied
|
||||
RUN pip install --no-cache-dir -U yt-dlp
|
||||
|
||||
COPY . .
|
||||
|
||||
@@ -24,10 +24,5 @@ ENV DB_PORT=$DB_PORT
|
||||
ENV DB_NAME=$DB_NAME
|
||||
ENV DB_USER=$DB_USER
|
||||
ENV DB_PASSWORD=$DB_PASSWORD
|
||||
ENV YTDL_COOKIES_FILE=$YTDL_COOKIES_FILE
|
||||
ENV YTDL_COOKIES_B64=$YTDL_COOKIES_B64
|
||||
ENV YTDL_COOKIES_FROM_BROWSER=$YTDL_COOKIES_FROM_BROWSER
|
||||
ENV YTDL_UA=$YTDL_UA
|
||||
ENV YTDL_YT_CLIENT=$YTDL_YT_CLIENT
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
|
||||
Reference in New Issue
Block a user