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

Merged
cami merged 3 commits from feature/flaskdocker into main 2021-05-11 00:05:28 +00:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit b3601652f1 - Show all commits

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"]