Last active
January 4, 2018 17:13
-
-
Save bouroo/1ba648c3208e83bef03565e85afa57dc to your computer and use it in GitHub Desktop.
/usr/local/bin/go
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
#!/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