Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. FROM golang:1.8.3 as goget
  2. LABEL maintainer="dcwolf@gmail.com"
  3. ADD ./main.go /go/src/github.com/palumacil/example/main.go
  4. ADD ./handler.go /go/src/github.com/palumacil/example/handler.go
  5. ADD ./config.go /go/src/github.com/palumacil/example/config.go
  6. RUN go get .\..
  7.  
  8. FROM golang:1.8.3-alpine as gobuild
  9. LABEL maintainer="dcwolf@gmail.com"
  10. COPY --from=goget /go/src /go/src
  11. RUN go install github.com/palumacil/example
  12.  
  13. FROM alpine
  14. LABEL maintainer="dcwolf@gmail.com"
  15. COPY --from=gobuild /go/bin /go/bin
  16. EXPOSE 80
  17. CMD /go/bin/example -port=80 -secrets=/run/secrets/example.json -log=/logs/example.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement