Merge pull request #342 from sandoracs/master
Some commands (e.g pwd) need bash
This commit is contained in:
commit
9ce95cd903
|
|
@ -38,7 +38,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.
|
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
|
```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
|
## Cross-compile your app inside the Docker container
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue