-
Notifications
You must be signed in to change notification settings - Fork 12
chore: harden Dockerfiles and add devops CODEOWNERS #487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| * @jrwbabylonlab @jeremy-babylonlabs @kirugan | ||
| * @jrwbabylonlab @jeremy-babylonlabs @kirugan | ||
|
|
||
| # DevOps team owns CI/CD workflows | ||
| /.github/workflows/ @babylonlabs-io/devops |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |||||||
|
|
||||||||
| ARG VERSION="HEAD" | ||||||||
|
|
||||||||
| # hadolint ignore=DL3018 | ||||||||
| RUN apk add --no-cache \ | ||||||||
| make \ | ||||||||
| git \ | ||||||||
|
|
@@ -31,13 +32,13 @@ | |||||||
| make build | ||||||||
|
|
||||||||
| # Final minimal image with binary only | ||||||||
| FROM alpine:3.16 AS run | ||||||||
| FROM alpine:3.21 AS run | ||||||||
|
|
||||||||
|
||||||||
| SHELL ["/bin/sh", "-o", "pipefail", "-c"] |
Copilot
AI
Feb 5, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description mentions "Pin Debian runtime packages to exact versions (bookworm) where applicable" but no Debian-based Dockerfiles are present in the repository or modified in this PR. Only Alpine-based Dockerfiles exist. Consider updating the PR description to accurately reflect that only Alpine packages are being pinned, or clarify what "where applicable" means in this context.
Check warning on line 41 in contrib/images/staking-api-service/Dockerfile
GitHub Actions / docker_pipeline / docker_build (linux/arm64, ubuntu-24.04-arm64)
Variables should be defined before their use
UndefinedVar: Usage of undefined variable '$VERSION'
More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Check warning on line 41 in contrib/images/staking-api-service/Dockerfile
GitHub Actions / docker_pipeline / docker_build (linux/arm64, ubuntu-24.04-arm64)
Variables should be defined before their use
UndefinedVar: Usage of undefined variable '$VERSION'
More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Check warning on line 41 in contrib/images/staking-api-service/Dockerfile
GitHub Actions / docker_pipeline / docker_build (linux/amd64, ubuntu-24.04)
Variables should be defined before their use
UndefinedVar: Usage of undefined variable '$VERSION'
More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
Check warning on line 41 in contrib/images/staking-api-service/Dockerfile
GitHub Actions / docker_pipeline / docker_build (linux/amd64, ubuntu-24.04)
Variables should be defined before their use
UndefinedVar: Usage of undefined variable '$VERSION'
More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A hadolint ignore directive for DL3018 (pin versions in apk add) has been added to the builder stage, which contradicts the PR's goal of hardening Dockerfiles by pinning package versions. While build tools often don't need pinned versions since the image is ephemeral, for consistency with the runtime stage and the PR's stated objectives, consider either pinning these build dependencies or adding a comment explaining why pinning is not necessary for the builder stage.