编译在docker alpine中可用的go程序
- get docker image
docker pull golang
- build
docker run -it --rm -v `pwd`:/root/src -w /root/src golang go build -o httpserver simplehttpserver.go
posted on 2018-04-25 19:25 Simple Love 阅读(1321) 评论(0) 编辑 收藏 举报
Good Good Study, Day Day Up
docker pull golang
docker run -it --rm -v `pwd`:/root/src -w /root/src golang go build -o httpserver simplehttpserver.go
posted on 2018-04-25 19:25 Simple Love 阅读(1321) 评论(0) 编辑 收藏 举报