Skip to content

chore: add hadolint CI job for Dockerfiles#216

Open
DevALVIN-24 wants to merge 1 commit into
VertexChainLabs:mainfrom
DevALVIN-24:chore/add-hadolint-ci
Open

chore: add hadolint CI job for Dockerfiles#216
DevALVIN-24 wants to merge 1 commit into
VertexChainLabs:mainfrom
DevALVIN-24:chore/add-hadolint-ci

Conversation

@DevALVIN-24

Copy link
Copy Markdown

This pr closes #160

Description

This PR resolves the issue where the docker/*.Dockerfile files were not linted. A linted Dockerfile builds faster, is smaller, and limits security vulnerabilities.

Changes Included

  • Added .github/workflows/container-lint.yml to run the hadolint CI check automatically on both docker/backend.Dockerfile and docker/frontend.Dockerfile whenever changes are pushed or a pull request is raised.
  • Configured .hadolint.yaml to ensure the lint step effectively enforces rules. Currently, it triggers failure only on a warnings threshold and correctly suppresses known benign apk add version-pinning rules (DL3018) that would unnecessarily block builds.

How to Verify

When you open this PR, you should see the new Container Lint job executing in GitHub Actions. It should succeed (if no other issues are present) and automatically check for common traps such as apt-get issues or missing configurations.

Copy link
Copy Markdown
Contributor

Contracts CI is currently failing \xe2\x9d\x97\xe2\x83\xa3 \xe2\x80\x94 could you take a look at the Soroban workflow logs and push a fix? Once green we're ready to merge!

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.

Add hadolint linting to Dockerfiles in CI

2 participants