Skip to content

Instantly share code, notes, and snippets.

@mauricioprado00
Last active July 3, 2019 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mauricioprado00/8ac58efebd6b7e94d043438cd9a1dbc6 to your computer and use it in GitHub Desktop.
Save mauricioprado00/8ac58efebd6b7e94d043438cd9a1dbc6 to your computer and use it in GitHub Desktop.
Dockerized go command
#!/bin/bash
# usage go [params]
docker run -it --rm --name my-running-app -v $(pwd)/:/go/src -w /go/src/ golang:1.8 go $@
# save it with:
# curl https://gist.githubusercontent.com/mauricioprado00/8ac58efebd6b7e94d043438cd9a1dbc6/raw/docker-go > /usr/local/bin/go
# chmod +x /usr/local/bin/go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment