FROM python:3.9 | |
COPY . . | |
# Set the working directory to / | |
WORKDIR / | |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt | |
COPY . . | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |
FROM python:3.9 | |
COPY . . | |
# Set the working directory to / | |
WORKDIR / | |
RUN pip install --no-cache-dir --upgrade -r /requirements.txt | |
COPY . . | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |