Skip to content

fix(Dockerfile): Update Alpine packages to patch libxml2 CVEs #35

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MalayBharti
Copy link

Summary

This PR updates the nginx:alpine stage in the multi-stage Docker build to patch critical vulnerabilities in system packages, specifically:

These issues stem from an outdated version of libxml2 included in the base image.

Changes

  • Added apk update && apk upgrade in the serve stage of the Dockerfile to ensure the latest security patches are applied.

Why

The vulnerabilities were detected when scanning the final image using Trivy.

Testing

  • Built the Docker image locally.
  • Confirmed vulnerabilities no longer appear after the change using Trivy.

@MalayBharti
Copy link
Author

Hey @NeoScript @AlbertoMonteiro, I wanted to check if there’s a chance it can be reviewed and potentially merged.

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