Skip to content

Docker & CI/CD Deployment Guidance for globe_runtime (AOT + FFI Use Case) #32

@kartikey321

Description

@kartikey321

I’m integrating globe_runtime in a production Docker environment
using a Dart AOT-compiled binary (dart compile exe).

The official documentation explains how to install the runtime locally
using:

globe runtime install

or by manually placing the shared library in:

~/.globe/runtime/

However, there is currently no documentation covering:

• How to properly integrate globe_runtime in Docker for CI/CD
• Best practices for multi-stage builds
• Where the shared library should be placed in containers
• Whether LD_LIBRARY_PATH is expected
• Required system dependencies (libstdc++, etc.)
• Whether distroless or Alpine is supported

For AOT-compiled Dart binaries using FFI, the runtime integration
appears to require:

  1. Installing globe runtime in a build stage
  2. Copying libglobe_runtime.so into a system library path
  3. Running ldconfig
  4. Ensuring system dependencies are installed

It would be extremely helpful if the documentation could include:

  • An official Dockerfile example
  • Recommended runtime image base (Debian? Ubuntu?)
  • Confirmation of glibc vs musl compatibility
  • List of required system libraries

This would significantly reduce friction for production deployments.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions