2018-01-10 22:36:31 +01:00
|
|
|
FROM python:3.6.3
|
|
|
|
|
2018-01-14 17:37:14 +01:00
|
|
|
MAINTAINER SamR1@users.noreply.github.com
|
2018-01-14 17:19:02 +01:00
|
|
|
|
2018-01-10 22:36:31 +01:00
|
|
|
# set working directory
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
# add requirements
|
2018-06-07 14:15:27 +02:00
|
|
|
COPY ./requirements.txt /usr/src/app/fittrackee_api/requirements.txt
|
2018-01-10 22:36:31 +01:00
|
|
|
|
|
|
|
# install requirements
|
2018-06-20 13:23:47 +02:00
|
|
|
RUN pip install pipenv
|
|
|
|
RUN pipenv install --system --deploy --ignore-pipfile
|
2018-01-10 22:36:31 +01:00
|
|
|
|
|
|
|
# add app
|
2018-01-14 17:19:02 +01:00
|
|
|
COPY . /usr/src/app
|
2018-01-10 22:36:31 +01:00
|
|
|
|
|
|
|
# run server
|
|
|
|
CMD flask run --with-threads -h 0.0.0.0
|