Skip to content

Commit

Permalink
Update healthcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamghill committed Nov 29, 2024
1 parent 402ba6c commit 309cca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ EXPOSE 80
# Install curl, collect static assets, compress static assets
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked --mount=type=cache,target=/var/lib/apt,sharing=locked \
apt-get update --fix-missing && \
apt-get install --no-install-recommends -y wget curl && \
apt-get install --no-install-recommends -y curl && \
python app.py collectstatic -v 2 --noinput && \
python app.py compress

HEALTHCHECK --interval=1m --timeout=10s --start-period=30s --retries=3 \
CMD curl -f http://0.0.0.0:80 || exit 1
HEALTHCHECK --interval=1m --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://0.0.0.0:80/static/svg/github.svg || exit 1

# Run gunicorn
CMD ["gunicorn", "app:wsgi", "--config=gunicorn.conf.py"]

0 comments on commit 309cca2

Please sign in to comment.