diff options
Diffstat (limited to 'docker/app/alpine/3.7/Dockerfile')
-rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile index 8ff06287..e7c8d696 100644 --- a/docker/app/alpine/3.7/Dockerfile +++ b/docker/app/alpine/3.7/Dockerfile @@ -2,19 +2,22 @@ FROM python:3.7-alpine ARG EXTRAS=deploy -RUN apk add \ - curl \ +# Build-time dependencies: To be removed later. +RUN apk add --virtual build \ gcc \ musl-dev \ postgresql-dev +# Used by the healthcheck. +RUN apk add --no-cache curl + WORKDIR /app COPY setup.py /app/setup.py RUN python3 -m pip install .[$EXTRAS] -COPY . . +# Remove dependencies used for building psycopg2. +RUN apk del --purge build -RUN apk del \ - gcc +COPY . . -HEALTHCHECK CMD curl -I localhost:4000 || exit 1 +HEALTHCHECK CMD curl -I -f localhost:4000 CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:application"] |