19 lines
236 B
Docker
19 lines
236 B
Docker
|
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"]
|