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