Starting with docker implementation for python. Does not work at the moment

This commit is contained in:
cami 2021-05-07 04:04:38 +02:00
parent d613c355ca
commit b3601652f1
2 changed files with 19 additions and 0 deletions

1
backend/.dockerignore Normal file
View file

@ -0,0 +1 @@
venv

18
backend/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM python:latest
# set working directory
WORKDIR /code
# install app dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# add app
COPY src/ .
# Expose Port 5000
EXPOSE 5000
# start app
CMD ["flask", "run"]