FROM python:3.9 | |
# Install dependencies | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy project files | |
COPY . /app | |
WORKDIR /app | |
# Run FastAPI | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |
FROM python:3.9 | |
# Install dependencies | |
COPY requirements.txt . | |
RUN pip install -r requirements.txt | |
# Copy project files | |
COPY . /app | |
WORKDIR /app | |
# Run FastAPI | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |