mirror of https://github.com/docker/docs.git
Merge pull request #13423 from arvind-007/patch-1
Update build-images.md
This commit is contained in:
commit
60709ed648
|
@ -153,7 +153,7 @@ COPY go.mod ./
|
|||
COPY go.sum ./
|
||||
```
|
||||
|
||||
Now that we have the module files inside the Docker image that we are building, we can use the `RUN` command to execute the command `go mod download` there as well. This works exactly the same as if we were running `go` locally on our machine, but this time these Go modules will be installed into the a directory inside our image.
|
||||
Now that we have the module files inside the Docker image that we are building, we can use the `RUN` command to execute the command `go mod download` there as well. This works exactly the same as if we were running `go` locally on our machine, but this time these Go modules will be installed into the app directory inside our image.
|
||||
|
||||
```dockerfile
|
||||
RUN go mod download
|
||||
|
|
Loading…
Reference in New Issue