From 98961aa1742cb17d5f2804cb1653f7a4f9baeb4e Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Mon, 17 Sep 2018 23:48:11 +0200 Subject: Try to cache requirements. --- docker/app/alpine/3.6/Dockerfile | 3 ++- docker/app/alpine/3.7/Dockerfile | 3 ++- docker/app/stretch/3.6/Dockerfile | 3 ++- docker/app/stretch/3.7/Dockerfile | 3 ++- 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 -- cgit v1.2.3