aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-02-05 23:39:32 +0100
committerGravatar Johannes Christ <[email protected]>2019-02-05 23:39:32 +0100
commit8b13f6d0a3c24ec6b5388b711ed028894afdd58c (patch)
tree9378bd7dea24a5096b69c8bf8b9e3334108d6470 /docker
parentImplement a simple nominations API. (diff)
Use poetry for dependency managemnet.
Diffstat (limited to 'docker')
-rw-r--r--docker/app/alpine/3.6/Dockerfile7
-rw-r--r--docker/app/alpine/3.7/Dockerfile6
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 . .