15 lines
407 B
Docker
15 lines
407 B
Docker
|
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
|