API: use of pipenv instead of pip + virtualenv

This commit is contained in:
Sam
2018-06-20 13:23:47 +02:00
parent 09e1e52e16
commit 0d1147feae
7 changed files with 631 additions and 63 deletions

View File

@ -10,7 +10,8 @@ WORKDIR /usr/src/app
COPY ./requirements.txt /usr/src/app/fittrackee_api/requirements.txt
# install requirements
RUN pip install -r fittrackee_api/requirements.txt
RUN pip install pipenv
RUN pipenv install --system --deploy --ignore-pipfile
# add app
COPY . /usr/src/app