FitTrackee/mpwo_api/Dockerfile

18 lines
325 B
Docker
Raw Normal View History

2018-01-10 22:36:31 +01:00
FROM python:3.6.3
# set working directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# add requirements
ADD ./requirements.txt /usr/src/app/mpwo_api/requirements.txt
# install requirements
RUN pip install -r mpwo_api/requirements.txt
# add app
ADD . /usr/src/app
# run server
CMD flask run --with-threads -h 0.0.0.0