The official Geblang Docker image
includes the Geblang CLI and standard library. It is useful for trying Geblang
without a local installation and for running the same toolchain in development
and CI.
Pull the current image and confirm the installed version:
docker pull dwgebler/geblang:latest
docker run --rm dwgebler/geblang:latest --version
For repeatable builds, replace latest with a release tag such as
dwgebler/geblang:<version>.
Run Geblang files from your project
The image works from /app. Mount the current directory there to
check or run source files without copying them into an image. If the project
keeps its test files under tests/, run that directory as a suite:
docker run --rm -v "$PWD:/app" dwgebler/geblang:latest check hello.gb
docker run --rm -v "$PWD:/app" dwgebler/geblang:latest run hello.gb
docker run --rm -v "$PWD:/app" dwgebler/geblang:latest test tests/
Build a Linux executable
With a main.gb entry module that exports main(), a
mounted output path writes the compiled binary back to the project directory.
The resulting executable targets Linux because the compiler is running inside
the Linux container. See the bundling guide
for package layouts and entry-point rules.
docker run --rm -v "$PWD:/app" dwgebler/geblang:latest \
build --entry main --out hello
./hello