diff options
author | 2018-09-17 23:48:11 +0200 | |
---|---|---|
committer | 2018-09-17 23:51:13 +0200 | |
commit | 98961aa1742cb17d5f2804cb1653f7a4f9baeb4e (patch) | |
tree | 8c13c8a0ffe1fdde0e3717644aa24802ba0471bc | |
parent | Add `SECRET_KEY` to test invocations. (diff) |
Try to cache requirements.
-rw-r--r-- | docker/app/alpine/3.6/Dockerfile | 3 | ||||
-rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 3 | ||||
-rw-r--r-- | docker/app/stretch/3.6/Dockerfile | 3 | ||||
-rw-r--r-- | 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 |