From fd7497ee32c0587cdcbec210e23582e74ca0d644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81cs=20S=C3=A1ndor?= Date: Mon, 14 Sep 2015 16:25:59 +0200 Subject: [PATCH] Some commands (e.g pwd) need bash --- golang/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/golang/content.md b/golang/content.md index 484642541..6e957d3e4 100644 --- a/golang/content.md +++ b/golang/content.md @@ -39,7 +39,7 @@ $ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.3 go build This will add your current directory as a volume to the container, set the working directory to the volume, and run the command `go build` which will tell go to compile the project in the working directory and output the executable to `myapp`. Alternatively, if you have a `Makefile`, you can run the `make` command inside your container. ```console -$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.3 make +$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.3 bash -c make ``` ## Cross-compile your app inside the Docker container