efectos / Dockerfile
Carley1234's picture
Update Dockerfile
2e346a4 verified
raw
history blame contribute delete
325 Bytes
FROM python:3.10-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face Spaces use port 7860 by default
EXPOSE 7860
CMD ["gunicorn", "app:app", "--workers", "1", "--worker-class", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:7860", "--timeout", "300"]