Based on grableroux/unity3d.
Linux Unity3d builds are taken from Unity on Linux: Release Notes and Known Issues
docker build -t <reg>/<name>:<tag> .
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
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
.