добавление докера

This commit is contained in:
Данил 2024-09-27 20:30:42 +03:00
parent 23ca5c0d49
commit 4be753af07
2 changed files with 14 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
.git/
.vscode/
.idea/

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM python:3.12
WORKDIR /starlio-web
COPY ./requirements.txt /starlio-web/requirements.txt
RUN pip3 install --no-cache-dir --upgrade -r /starlio-web/requirements.txt
COPY ./ /starlio-web/
CMD ["fastapi", "run", "main.py", "--port", "8000"]