Skip to content

Add Dockerfile HEALTHCHECK instruction #55

Description

@aleibovici

Description

The Dockerfile currently does not include a HEALTHCHECK instruction. Docker and orchestrators (Docker Compose, Kubernetes) use this to determine if the container is healthy.

Suggested approach

  • Add a HEALTHCHECK instruction to the Dockerfile
  • Use the existing /api/health endpoint
  • Example: HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl -f http://localhost:3000/api/health || exit 1

Files to look at

  • Dockerfile
  • src/app/api/health/ — existing health check endpoint

Quick and straightforward change — great for getting familiar with the Docker setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions