diff options
| author | 2019-02-05 23:39:32 +0100 | |
|---|---|---|
| committer | 2019-02-05 23:39:32 +0100 | |
| commit | 8b13f6d0a3c24ec6b5388b711ed028894afdd58c (patch) | |
| tree | 9378bd7dea24a5096b69c8bf8b9e3334108d6470 /docker | |
| parent | Implement a simple nominations API. (diff) | |
Use poetry for dependency managemnet.
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/app/alpine/3.6/Dockerfile | 7 | ||||
| -rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 6 | 
2 files changed, 7 insertions, 6 deletions
| diff --git a/docker/app/alpine/3.6/Dockerfile b/docker/app/alpine/3.6/Dockerfile index b9cb557b..7578418c 100644 --- a/docker/app/alpine/3.6/Dockerfile +++ b/docker/app/alpine/3.6/Dockerfile @@ -19,9 +19,10 @@ RUN apk add --no-cache --virtual build \          postgresql-dev  WORKDIR /app -COPY setup.py /app/setup.py -RUN python3 -m pip install .[$EXTRAS] -RUN apk del --purge build +COPY pyproject.toml /app/pyproject.toml +RUN python3 -m pip install poetry \ +    && python3 -m poetry install --extras deploy \ +    && apk del --purge build  COPY . . diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile index a2023977..7e639c29 100644 --- a/docker/app/alpine/3.7/Dockerfile +++ b/docker/app/alpine/3.7/Dockerfile @@ -1,7 +1,6 @@  FROM python:3.7-alpine  STOPSIGNAL SIGQUIT -ARG EXTRAS=deploy  RUN adduser \      -D \ @@ -19,8 +18,9 @@ RUN apk add --no-cache --update --virtual build \          postgresql-dev  WORKDIR /app -COPY setup.py /app/setup.py -RUN python3 -m pip install .[$EXTRAS] \ +COPY pyproject.toml /app/pyproject.toml +RUN python3 -m pip install poetry \ +    && python3 -m poetry install --extras deploy \      && apk del --purge build  COPY . . | 
