FitTrackee/fittrackee_api/Dockerfile
Sam 454ac19ca5 API: docker fix
use of symlink to avoid duplicate Pipfiles
2018-06-20 14:18:49 +02:00

22 lines
401 B
Docker

FROM python:3.6.3
MAINTAINER SamR1@users.noreply.github.com
# set working directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# add requirements
COPY ./Pipfile /usr/src/app/Pipfile
COPY ./Pipfile.lock /usr/src/app/Pipfile.lock
# install requirements
RUN pip install pipenv
RUN pipenv install --system --dev
# add app
COPY . /usr/src/app
# run server
CMD flask run --with-threads -h 0.0.0.0