Skip to content

fix(docker): install curl for healthcheck - #7

Merged
Zingzy merged 1 commit into
mainfrom
fix/dockerfile-curl
May 7, 2026
Merged

fix(docker): install curl for healthcheck#7
Zingzy merged 1 commit into
mainfrom
fix/dockerfile-curl

Conversation

@Zingzy

@Zingzy Zingzy commented May 7, 2026

Copy link
Copy Markdown
Member

Summary by Sourcery

Build:

  • Add apt-based installation of curl and cleanup of apt cache in the Dockerfile for healthcheck support.

Copilot AI review requested due to automatic review settings May 7, 2026 21:00
@sourcery-ai

sourcery-ai Bot commented May 7, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Installs curl in the Python 3.12 slim Docker image specifically to support container health checks, while keeping the image relatively small by using --no-install-recommends and cleaning up apt caches.

Sequence diagram for container healthcheck using curl

sequenceDiagram
    actor Orchestrator
    participant Container
    participant curlProcess
    participant AppProcess

    Orchestrator->>Container: Trigger Docker healthcheck
    Container->>curlProcess: Run curl http://localhost/health
    curlProcess->>AppProcess: HTTP GET /health
    AppProcess-->>curlProcess: 200 OK
    curlProcess-->>Container: Exit code 0
    Container-->>Orchestrator: Healthcheck success

    Orchestrator->>Container: Subsequent healthchecks on schedule
Loading

File-Level Changes

Change Details Files
Add curl installation step with minimal image size impact to support health checks in the Docker image.
  • Run apt-get update before installing new packages
  • Install curl using apt-get with --no-install-recommends to avoid extra dependencies
  • Clean up apt cache and package lists to reduce final image size
dockerfile

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@Zingzy
Zingzy merged commit 4b9a060 into main May 7, 2026
2 of 4 checks passed
@coderabbitai

coderabbitai Bot commented May 7, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Zingzy has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 35 minutes before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d25e622c-1243-4ad5-a501-ae4f902814cb

📥 Commits

Reviewing files that changed from the base of the PR and between 0572a13 and 34ccefe.

📒 Files selected for processing (1)
  • dockerfile
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/dockerfile-curl

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds curl to the container image so runtime health checks can execute curl inside the container (e.g., for /health probing), aligning the image contents with operational/deploy workflow expectations.

Changes:

  • Install curl in the Docker image via apt-get and remove apt list metadata afterward.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dockerfile
FROM python:3.12-slim

# Install curl for healthchecks (10MB) and clean up apt cache.
RUN apt-get update && apt-get install -y --no-install-recommends curl \
Comment thread dockerfile
@@ -1,5 +1,9 @@
FROM python:3.12-slim

# Install curl for healthchecks (10MB) and clean up apt cache.
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.

2 participants