api / Dockerfile
tensorus's picture
Update Dockerfile
eb694c3 verified
raw
history blame contribute delete
346 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY . .
# Install dependencies and set executable permissions
RUN apt-get update && \
apt-get install -y nginx && \
pip install --no-cache-dir -r requirements.txt
# Expose port 7860 (as required by Hugging Face Spaces)
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]