try / Dockerfile
arnaupq2's picture
Upload 5 files
039b1c4 verified
Raw History Blame Contribute Delete
474 Bytes
FROM python:3.9
# Install ffmpeg for yt-dlp to work correctly (for merging video/audio)
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Create downloads folder
RUN mkdir -p downloads && chmod 777 downloads
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose the port HF expects
EXPOSE 7860
# Run with Gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]