Conversation
Use cgr.dev/chainguard/node distroless image for full compatibility with Debian glibc builds. It sets PRISMA_CLIENT_ENGINE_TYPE=library and bundles the native query engine to avoid process-spawning crashes in Unikraft's single address space model. Signed-off-by: Constantin-Cătălin Cojocaru <catalincojocaru4@gmail.com>
…ress server example - Measure root file system size using du -sh - Scan for vulnerabilities using Trivy - Validate output using curl and grep Signed-off-by: Constantin-Cătălin Cojocaru <catalincojocaru4@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added a Node.js (Express 4.18) and Prisma base example using the distroless container image
cgr.dev/chainguard/node, which provides a minimal runtime environment. This example utilizes a multi-stage build, starting withnode:22-bookworm-slimto install dependencies, generate the Prisma client, migrate and seed the database, and bundle the application using Webpack. It selectively copies the compiled application bundle and the generated Prisma engine into the final distroless image.The
README.mdfile contains instructions for building and running the example manually.Automated Testing
This PR contains a three-stage workflow to build and test this example via GitHub Actions:
curlon the/feedendpoint and matching the HTTP200status codeNote on Vulnerability Scanning:
Trivy scans are configured to pass by explicitly ignoring specific vulnerabilities via
.trivyignore.CVE-2026-14456(libssl3) is ignored because it affects OpenSSL QUIC servers, a feature that this simple application does not implement or utilize (exception expires on 2026-11-30).