videowithlink / Dockerfile
ayloll's picture
Update Dockerfile
555d86a verified
raw
history blame contribute delete
306 Bytes
FROM python:3.10
WORKDIR /app
# Create a directory yt-dlp can write to
RUN mkdir -p /app/cache && chmod 777 /app/cache
ENV XDG_CACHE_HOME=/app/cache
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]