Skip to content

Instantly share code, notes, and snippets.

@alextanhongpin
Created September 4, 2017 05:05
Show Gist options
  • Save alextanhongpin/5257c56e80e3587806c36a7afb41c90b to your computer and use it in GitHub Desktop.
Save alextanhongpin/5257c56e80e3587806c36a7afb41c90b to your computer and use it in GitHub Desktop.
$ docker build -t alextanhongpin/hello-world-00 -f Dockerfile.00 .
Sending build context to Docker daemon 2.016MB
Step 1/6 : FROM golang:1.9
 — -> 5e2f23f821ca
Step 2/6 : WORKDIR /go/src/github.com/alextanhongpin/hello-world
 — -> Using cache
 — -> d36bf8436458
Step 3/6 : COPY main.go .
 — -> Using cache
 — -> 2fa05dc652bc
Step 4/6 : RUN go get -d -v
 — -> Using cache
 — -> bb0f73ac82d1
Step 5/6 : RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
 — -> Using cache
 — -> 8b32d3f4cfd0
Step 6/6 : CMD /go/src/github.com/alextanhongpin/hello-world/app
 — -> Running in 440d47e71346
 — -> 2669fc5303bf
Removing intermediate container 440d47e71346
Successfully built 2669fc5303bf
Successfully tagged alextanhongpin/hello-world-00:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment