PIbd-32_Kashin_M.I_API_Cour.../Dockerfile

15 lines
407 B
Docker
Raw Normal View History

FROM python:3.11-slim
COPY ../../../../../AppData/Local/Temp .
RUN pip install -r requirements.txt
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "80"]
# Для запуска введите две команды:
# docker build . --tag fastapi_app
# docker run -p 80:80 fastapi_app
# Или одной командой
# docker build . --tag fastapi_app && docker run -p 80:80 fastapi_app