diff options
author | 2018-09-18 21:48:11 +0200 | |
---|---|---|
committer | 2018-09-18 21:48:11 +0200 | |
commit | 418506c2537eb1650c5fa4548cc04002b91960ec (patch) | |
tree | b7c2fee2f1992144866b33e28a4d32efda63d632 /docker | |
parent | Omit unneeded directories. (diff) |
Add `HEALTHCHECK`.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/app/alpine/3.7/Dockerfile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/app/alpine/3.7/Dockerfile b/docker/app/alpine/3.7/Dockerfile index d3d21e65..1049af0a 100644 --- a/docker/app/alpine/3.7/Dockerfile +++ b/docker/app/alpine/3.7/Dockerfile @@ -3,6 +3,7 @@ FROM python:3.7-alpine ARG EXTRAS=deploy RUN apk add \ + curl \ gcc \ musl-dev \ postgresql-dev @@ -15,4 +16,5 @@ COPY . . RUN apk del \ gcc +HEALTHCHECK curl -I localhost:4000 || exit 1 CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:application"] |