Starting with docker implementation for python. Does not work at the moment
This commit is contained in:
parent
d613c355ca
commit
b3601652f1
2 changed files with 19 additions and 0 deletions
1
backend/.dockerignore
Normal file
1
backend/.dockerignore
Normal file
|
@ -0,0 +1 @@
|
|||
venv
|
18
backend/Dockerfile
Normal file
18
backend/Dockerfile
Normal 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"]
|
Loading…
Reference in a new issue