Skip to content

Commit

Permalink
feat: add Docker healthcheck (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
dspashynskyi authored Dec 5, 2024
1 parent e22d95f commit f12db7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ COPY --chown=appuser ./aidial_analytics_realtime /aidial_analytics_realtime

ENV PATH="/opt/venv/bin:$PATH"


USER appuser

HEALTHCHECK --interval=10s --timeout=5s --start-period=30s --retries=6 \
CMD wget --no-verbose --tries=1 --spider http://localhost:5000/health || exit 1

# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
EXPOSE 5000
CMD ["uvicorn", "aidial_analytics_realtime.app:app", "--host", "0.0.0.0", "--port", "5000"]

0 comments on commit f12db7a

Please sign in to comment.