Add Dart example - #2196
Merged
loosebazooka merged 3 commits intoSep 24, 2026
Merged
Add Dart example#2196
Conversation
Adds examples/dart, which builds a Dart app with 'dart build cli' (following the official dart Docker image) and runs the resulting bundle on gcr.io/distroless/base-debian13 instead of scratch + /runtime/. Dart AOT executables only link against glibc, so the base image is sufficient; it also provides the CA certificates and tzdata used by dart:io.
Member
|
Does dart use libssl? |
Contributor
Author
No, it doesn't: Dart bundles its own BoringSSL. The example executable only links against libc, libm, libdl and libpthread. |
Member
|
It's possible you can get away with using the base-nossl image |
Dart bundles its own BoringSSL and does not use the system libssl, so the nossl variant is sufficient. It still provides the CA certificates used by dart:io for HTTPS.
Contributor
Author
Ah, cool, yes that works, too! |
loosebazooka
approved these changes
Sep 24, 2026
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.
Adds examples/dart, which builds a Dart app with 'dart build cli' (following the official dart Docker image) and runs the resulting bundle on gcr.io/distroless/base-debian13. Dart AOT executables only link against glibc, so the base image is sufficient; it also provides the CA certificates and tzdata used by dart:io.