FROM python:3.9 | |
WORKDIR /fastapi/app | |
COPY ./requirements.txt /fastapi/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /fastapi/requirements.txt | |
COPY ./app /fastapi/app | |
EXPOSE 8000 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |