From 1e0be65e13c6b030901b107f08e24eb77e0bef74 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Fri, 5 Apr 2019 13:25:58 +0100 Subject: [#193] Replace Poetry with Pipenv --- docker/app/alpine/3.6/Dockerfile | 8 +++++--- docker/app/alpine/3.7/Dockerfile | 8 +++++--- docker/app/stretch/3.6/Dockerfile | 8 ++++++-- docker/app/stretch/3.7/Dockerfile | 8 ++++++-- 4 files changed, 22 insertions(+), 10 deletions(-) (limited to 'docker') diff --git a/docker/app/alpine/3.6/Dockerfile b/docker/app/alpine/3.6/Dockerfile index 7578418c..1abcd537 100644 --- a/docker/app/alpine/3.6/Dockerfile +++ b/docker/app/alpine/3.6/Dockerfile @@ -19,9 +19,11 @@ RUN apk add --no-cache --virtual build \ postgresql-dev WORKDIR /app -COPY pyproject.toml /app/pyproject.toml -RUN python3 -m pip install poetry \ - && python3 -m poetry install --extras deploy \ + +COPY Pipfile /app/Pipfile +COPY Pipfile.lock /app/Pipfile.lock +RUN python3 -m pip install pipenv \ + && python3 -m pipenv install --dev --system --deploy \ && apk del --purge build COPY . . diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile index 7e639c29..955c01be 100644 --- a/docker/app/alpine/3.7/Dockerfile +++ b/docker/app/alpine/3.7/Dockerfile @@ -18,9 +18,11 @@ RUN apk add --no-cache --update --virtual build \ postgresql-dev WORKDIR /app -COPY pyproject.toml /app/pyproject.toml -RUN python3 -m pip install poetry \ - && python3 -m poetry install --extras deploy \ + +COPY Pipfile /app/Pipfile +COPY Pipfile.lock /app/Pipfile.lock +RUN python3 -m pip install pipenv \ + && python3 -m pipenv install --dev --system --deploy \ && apk del --purge build COPY . . diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile index 8a37925c..3ce69018 100644 --- a/docker/app/stretch/3.6/Dockerfile +++ b/docker/app/stretch/3.6/Dockerfile @@ -21,8 +21,12 @@ RUN apt-get update -y \ rm -rf /var/lib/apt/lists/* WORKDIR /app -COPY setup.py /app/setup.py -RUN python3 -m pip install .[$EXTRAS] + +COPY Pipfile /app/Pipfile +COPY Pipfile.lock /app/Pipfile.lock +RUN python3 -m pip install pipenv \ + && python3 -m pipenv install --dev --system --deploy + COPY . . RUN apt-get purge -y \ diff --git a/docker/app/stretch/3.7/Dockerfile b/docker/app/stretch/3.7/Dockerfile index 1674eece..c2f10cea 100644 --- a/docker/app/stretch/3.7/Dockerfile +++ b/docker/app/stretch/3.7/Dockerfile @@ -21,8 +21,12 @@ RUN apt-get update -y \ rm -rf /var/lib/apt/lists/* WORKDIR /app -COPY setup.py /app/setup.py -RUN python3 -m pip install .[$EXTRAS] + +COPY Pipfile /app/Pipfile +COPY Pipfile.lock /app/Pipfile.lock +RUN python3 -m pip install pipenv \ + && python3 -m pipenv install --dev --system --deploy + COPY . . RUN apt-get purge -y \ -- cgit v1.2.3