Skip to content

Instantly share code, notes, and snippets.

@bouroo
Last active January 4, 2018 17:13
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 bouroo/1ba648c3208e83bef03565e85afa57dc to your computer and use it in GitHub Desktop.
Save bouroo/1ba648c3208e83bef03565e85afa57dc to your computer and use it in GitHub Desktop.
/usr/local/bin/go
#!/usr/bin/env bash
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
echo "Current working directory: '"$(pwd)"'"
docker run -it --rm \
-v "$(pwd)":/usr/src/myapp \
-w /usr/src/myapp \
golang:alpine \
go "$@"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment