This repository provides a Docker image for the Godot Engine with Mono support. It includes everything necessary to install Godot, the C# SDK, and run the engine in non-headless mode, allowing you to execute tests using gdUnit4.
To pull the most recent version of the Docker image from GitHub Container Registry:
docker pull ghcr.io/poboulet/godot-dev-mono:latest
To run the container, execute the following command:
docker run <options> ghcr.io/poboulet/godot-dev-mono:latest
Replace with any additional flags or volume mappings you need (e.g., -it to run interactively, -v to mount directories, -p to map ports).
To mount a local project directory inside the container:
docker run -it --rm -v /path/to/your/project:/workspace ghcr.io/poboulet/godot-dev-mono:latest
This mounts your local project directory to /workspace inside the container.
jobs:
job-name:
runs-on: ubuntu-latest
container:
image: ghcr.io/poboulet/godot-dev-mono:latest
To build the image yourself, run the following command:
docker build -t godot-dev -f ./Dockerfile.godot-dev --build-arg MONO=true --build-arg GODOT_VERSION=4.3 .
MONO
: Set this totrue
to include the Mono version of Godot. The default value isfalse
.GODOT_VERSION
: Specify the version of Godot to be used. The default is version4.3
.
Once the image is built, you can run it using the following command:
docker run <options> godot-dev
Replace with any necessary Docker flags or options as described above.