diff options
| author | 2018-09-19 21:15:40 +0200 | |
|---|---|---|
| committer | 2018-09-19 21:25:40 +0200 | |
| commit | f25e737aa6a2215a40049afdb0245d16408fd489 (patch) | |
| tree | cc2cd079ae9470889276f3cedc847299f7004853 /docker/app | |
| parent | Ignore all unneeded files. (diff) | |
Remove headers after compilation.
Diffstat (limited to 'docker/app')
| -rw-r--r-- | docker/app/alpine/3.6/Dockerfile | 9 | ||||
| -rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 7 | ||||
| -rw-r--r-- | docker/app/stretch/3.6/Dockerfile | 5 | ||||
| -rw-r--r-- | docker/app/stretch/3.7/Dockerfile | 4 | 
4 files changed, 13 insertions, 12 deletions
diff --git a/docker/app/alpine/3.6/Dockerfile b/docker/app/alpine/3.6/Dockerfile index 0dedd6da..c460815b 100644 --- a/docker/app/alpine/3.6/Dockerfile +++ b/docker/app/alpine/3.6/Dockerfile @@ -3,13 +3,12 @@ FROM python:3.6-alpine  ARG EXTRAS=deploy  # Build-time dependencies: To be removed later. -RUN apk add --no-cache --virtual build \ +RUN apk add --virtual build \          gcc \ -        musl-dev \ -        postgresql-dev +        musl-dev -# Used by the healthcheck. -RUN apk add --no-cache curl +# Used by the healthcheck and shared library used by psycopg2. +RUN apk add --no-cache curl postgresql-dev  WORKDIR /app  COPY setup.py /app/setup.py diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile index e7c8d696..83dbdb96 100644 --- a/docker/app/alpine/3.7/Dockerfile +++ b/docker/app/alpine/3.7/Dockerfile @@ -5,11 +5,10 @@ ARG EXTRAS=deploy  # Build-time dependencies: To be removed later.  RUN apk add --virtual build \          gcc \ -        musl-dev \ -        postgresql-dev +        musl-dev -# Used by the healthcheck. -RUN apk add --no-cache curl +# Used by the healthcheck and shared library used by psycopg2. +RUN apk add --no-cache curl postgresql-dev  WORKDIR /app  COPY setup.py /app/setup.py diff --git a/docker/app/stretch/3.6/Dockerfile b/docker/app/stretch/3.6/Dockerfile index 19fe5918..a52317da 100644 --- a/docker/app/stretch/3.6/Dockerfile +++ b/docker/app/stretch/3.6/Dockerfile @@ -8,13 +8,14 @@ RUN apt-get install -y \                  libc-dev \                  libpq-dev -  WORKDIR /app  COPY setup.py /app/setup.py  RUN python3 -m pip install .[$EXTRAS]  COPY . .  RUN apt-get purge -y \ -            gcc +            gcc \ +            libc-dev \ +            libpq-dev  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 70d18dbc..1e832e32 100644 --- a/docker/app/stretch/3.7/Dockerfile +++ b/docker/app/stretch/3.7/Dockerfile @@ -14,6 +14,8 @@ RUN python3 -m pip install .[$EXTRAS]  COPY . .  RUN apt-get purge -y \ -            gcc +            gcc \ +            libc-dev \ +            libpq-dev  CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:applicati  |