aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-17 23:48:11 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-17 23:51:13 +0200
commit98961aa1742cb17d5f2804cb1653f7a4f9baeb4e (patch)
tree8c13c8a0ffe1fdde0e3717644aa24802ba0471bc /docker
parentAdd `SECRET_KEY` to test invocations. (diff)
Try to cache requirements.
Diffstat (limited to 'docker')
-rw-r--r--docker/app/alpine/3.6/Dockerfile3
-rw-r--r--docker/app/alpine/3.7/Dockerfile3
-rw-r--r--docker/app/stretch/3.6/Dockerfile3
-rw-r--r--docker/app/stretch/3.7/Dockerfile3
4 files changed, 8 insertions, 4 deletions
diff --git a/docker/app/alpine/3.6/Dockerfile b/docker/app/alpine/3.6/Dockerfile
index e4b75649..8f8116c6 100644
--- a/docker/app/alpine/3.6/Dockerfile
+++ b/docker/app/alpine/3.6/Dockerfile
@@ -12,9 +12,10 @@ RUN apk add \
musl-dev \
postgresql-dev
-COPY . /app
WORKDIR /app
+COPY setup.py /app/setup.py
RUN python3 -m pip install .[$EXTRAS]
+COPY . .
RUN apk del \
autoconf \
diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile
index 33a6c12c..8c413932 100644
--- a/docker/app/alpine/3.7/Dockerfile
+++ b/docker/app/alpine/3.7/Dockerfile
@@ -12,9 +12,10 @@ RUN apk add \
musl-dev \
postgresql-dev
-COPY . /app
WORKDIR /app
+COPY setup.py /app/setup.py
RUN python3 -m pip install .[$EXTRAS]
+COPY . .
RUN apk del \
autoconf \
diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile
index 0eb064ea..d12c9406 100644
--- a/docker/app/stretch/3.6/Dockerfile
+++ b/docker/app/stretch/3.6/Dockerfile
@@ -13,8 +13,9 @@ RUN apt-get install -y \
libpq-dev
-COPY . /app
WORKDIR /app
+COPY setup.py /app/setup.py
RUN python3 -m pip install .[$EXTRAS]
+COPY . .
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:application"]
diff --git a/docker/app/stretch/3.7/Dockerfile b/docker/app/stretch/3.7/Dockerfile
index 9a838fd9..42187a9b 100644
--- a/docker/app/stretch/3.7/Dockerfile
+++ b/docker/app/stretch/3.7/Dockerfile
@@ -12,8 +12,9 @@ RUN apt-get install -y \
libc-dev \
libpq-dev
-COPY . /app
WORKDIR /app
+COPY setup.py /app/setup.py
RUN python3 -m pip install .[$EXTRAS]
+COPY . .
CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:applicati