Skip to content

feature: add native healthcheck binary to Docker image#30

Open
guicane wants to merge 2 commits into
ArnaudCrl:masterfrom
guicane:feature/healthcheck-binary-image
Open

feature: add native healthcheck binary to Docker image#30
guicane wants to merge 2 commits into
ArnaudCrl:masterfrom
guicane:feature/healthcheck-binary-image

Conversation

@guicane
Copy link
Copy Markdown

@guicane guicane commented Feb 15, 2026

Currently, the Docker image is very minimal and does not include curl or wget. This makes it difficult for container orchestrators (like Portainer or Docker Compose) to monitor the health of the service, often resulting in a "502 Bad Gateway" or "Unhealthy" status.

I have added a lightweight, native Rust healthcheck binary that verifies the server is listening on port 5000.

Benefits:

Zero Bloat: Does not add curl or wget to the final production image.

Security: No extra networking tools left in the container.

Reliability: Portainer/Docker will now correctly show the service status.

Changes:

Created src/bin/healthcheck.rs

Updated Dockerfile to build and include the tool.

This was created by Gemini so please review carefully :)

… or wget. This makes it difficult for container orchestrators (like Portainer or Docker Compose) to monitor the health of the service, often resulting in a or status.

I have added a lightweight, native Rust healthcheck binary that verifies the server is listening on port 5000.

Benefits:

    Zero Bloat: Does not add curl or wget to the final production image.

    Security: No extra networking tools left in the container.

    Reliability: Portainer/Docker will now correctly show the service status.

Changes:

    Created src/bin/healthcheck.rs

    Updated Dockerfile to build and include the tool.
@guicane guicane changed the title Currently, the Docker image is very minimal and does not include curl… feature: add native healthcheck binary to Docker image Feb 15, 2026
@guicane
Copy link
Copy Markdown
Author

guicane commented Feb 15, 2026

It appears the CI is failing on existing tests in crop_and_resize.rs. I haven't modified any logic in those files; my changes are strictly limited to adding the healthcheck binary and the Dockerfile instructions. The failures seem to be due to missing system dependencies in the GitHub runner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant