iris-classifier / Dockerfile
aanchal77's picture
Update Dockerfile
0baaff9 verified
Raw
History Blame Contribute Delete
306 Bytes
FROM python:3.9-slim
WORKDIR /code
# Copy & install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# Expose port
EXPOSE 7860
# Use multiple workers + reload off for production
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]