Skip to content

Add HEALTHCHECK instruction to Dockerfile #135

@adnaan

Description

@adnaan

Context

This follow-up task was identified during the review of PR #132.

Source PR: #132
PR Title: feat: add Docker support with multi-stage build
Suggested by: @claude[bot]

Task Description

For production deployments, consider adding a HEALTHCHECK instruction to the Dockerfile.

This would require adding wget or curl to the final stage (adds ~1MB to image size).

Example:

RUN apk add --no-cache wget
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
  CMD wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1

Considerations

  • Adds ~1MB to image size
  • Requires /health endpoint to exist
  • Useful for orchestration (Docker Compose, Kubernetes)

This issue was automatically created from PR review comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-lowLow: extended features, operational docsfollow-upFollow-up task from PR reviewfrom-reviewIssue originated from PR review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions