This is a docker image used to build games created with monogame using dotnet
command line. It was inspired by gmantaos/monogame-docker and CL0SeY/dotnet-mono-docker.
docker pull gableroux/dotnet-mono-monogame:latest
docker run --rm -it -v "$PWD:/app" gableroux/dotnet-mono-monogame bash
Once inside the container:
cd /app
dotnet build project_name.csproj
See ./examples/circle.yml and ./examples/build.sh
Error : Importer 'WavImporter' had unexpected failure! [...] build/MGCB/build/ffprobe [...] Native error= Access denied
This seems to be a problem with nuget monogame installation during the restore command. It doesn't restore the executable mode on ffmpeg
and ffprobe
command lines.
workaround:
chmod +x /root/.nuget/packages/monogame.content.builder/3.7.0.4/build/MGCB/build/ffprobe
chmod +x /root/.nuget/packages/monogame.content.builder/3.7.0.4/build/MGCB/build/ffmpeg
Run these two commands right after the restore command.