Add Docker file

This commit is contained in:
BitHeaven 2024-08-03 17:40:40 +03:00
parent 37fceb5bd4
commit b3b11d2d01
1 changed files with 6 additions and 0 deletions

6
web/Docker Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.10-alpine
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY ./app /code/app
CMD ["fastapi", "run", "main.py", "--port", "80"]