Skip to content

Commit d47ddd8

Browse files
committed
feat: Docker container for deployment has health check
1 parent cd4f5d1 commit d47ddd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ EXPOSE 5000
4242
COPY api.cfg /app/settings.cfg
4343
ENV GETMARCAPI_SETTINGS=/app/settings.cfg
4444
RUN ./.venv/bin/python -m getmarcapi --check
45+
HEALTHCHECK --interval=30s --timeout=10s --retries=3 CMD curl -f http://localhost:5000 || exit 1
4546
CMD ./.venv/bin/gunicorn getmarcapi.app:app --bind 0.0.0.0:5000 --log-level=debug
4647

0 commit comments

Comments
 (0)