Last active
January 6, 2021 13:59
-
-
Save olso/bcdf728f8837cb9922157fd50d5e7e28 to your computer and use it in GitHub Desktop.
https://github.com/olso/go-wasm-cat-game-on-canvas-with-docker 🧶 https://olso.space 🧶 https://twitter.com/olso_uznebolo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_go: | |
docker run --rm \ | |
-v `pwd`/src:/game \ | |
--env GOOS=js --env GOARCH=wasm \ | |
golang:1.12-rc \ | |
/bin/bash -c "go build -o /game/game.wasm /game/main.go; cp /usr/local/go/misc/wasm/wasm_exec.js /game/wasm_exec.js" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment