Skip to content

Commit

Permalink
Merge pull request docker-library#1466 from formych/patch-1
Browse files Browse the repository at this point in the history
FIX: Cross-compile
  • Loading branch information
tianon authored Apr 23, 2019
2 parents e1803d7 + dc0d9fc commit ad78a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions golang/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Alternatively, you can build for multiple platforms at once:
$ docker run --rm -it -v "$PWD":/usr/src/myapp -w /usr/src/myapp %%IMAGE%%:1.8 bash
$ for GOOS in darwin linux; do
> for GOARCH in 386 amd64; do
> export GOOS GOARCH
> go build -v -o myapp-$GOOS-$GOARCH
> done
> done
Expand Down

0 comments on commit ad78a08

Please sign in to comment.