Yt-api / Dockerfile
dragxd's picture
Update Dockerfile
c82ce1c verified
raw
history blame contribute delete
311 Bytes
FROM python:3.10
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create the downloads directory with proper permissions
RUN mkdir -p /app/downloads && chmod 777 /app/downloads
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]