File size: 347 Bytes
6f21a14 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# Use official Python runtime base image
FROM python:3.10.9
# Copy project files
COPY . .
# Set working directory
WORKDIR /
# Install dependencies listed in requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Command to run FastAPI app on port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|