niknok / Dockerfile
ljx77qaq's picture
Rename Dockerfile.txt to Dockerfile
4d386f5 verified
Raw
History Blame Contribute Delete
459 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg aria2 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir -U --pre "yt-dlp[default]" && yt-dlp --version
COPY . .
ENV HOME=/tmp
ENV TMPDIR=/tmp/dl
RUN mkdir -p /tmp/dl /tmp/cookies && chmod -R 777 /tmp/dl /tmp/cookies
EXPOSE 7860
CMD ["python", "app.py"]