From fe43b6f97e5c40df580361887f1fd14115879c4e Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 28 Aug 2019 12:05:23 +0200 Subject: [PATCH] API - update Dockerfile --- fittrackee_api/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/fittrackee_api/Dockerfile b/fittrackee_api/Dockerfile index 810d119e..1e74697a 100644 --- a/fittrackee_api/Dockerfile +++ b/fittrackee_api/Dockerfile @@ -7,15 +7,16 @@ 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 +COPY ./pyproject.toml /usr/src/app/pyproject.toml +COPY ./poetry.lock /usr/src/app/poetry.lock # install requirements RUN pip install --upgrade pip -RUN pip install pipenv -RUN pipenv install --system --dev +RUN pip install poetry +RUN poetry config settings.virtualenvs.create false +RUN poetry install --no-interaction -# add app +# add app --no-interaction COPY . /usr/src/app # run server