Guest User

Untitled

a guest
Apr 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. FROM golang:latest AS build
  2.  
  3. WORKDIR $GOPATH/{your-repo}
  4. COPY . ./
  5. RUN go get github.com/tools/godep
  6. RUN godep get
  7. RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix nocgo -o /app .
  8.  
  9. FROM scratch
  10. COPY --from=build /app ./
  11. ENTRYPOINT ["./app"]
Add Comment
Please, Sign In to add comment