/unity-docker

🐳📦

Primary LanguageDockerfileMIT LicenseMIT

unity-docker

Based on grableroux/unity3d.

Linux Unity3d builds are taken from Unity on Linux: Release Notes and Known Issues

Usage

Build the image

docker build -t <reg>/<name>:<tag> .

Run the image

docker run -it --rm \
  -v "$(pwd):/root/project" \
  gableroux/unity3d:latest \
  xvfb-run --auto-servernum --server-args='-screen 0 640x480x24' \
  /opt/Unity/Editor/Unity -projectPath /root/project

Gitlab-CI

This docker image is intended to be used with gitlab-ci (but may work with other CIs). An example project using unity3d in a docker image can be found at gableroux/unity3d-gitlab-ci-example. Have a look to the .gitlab-ci.yml.

License

MIT