Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. FROM golang:1.11
  2.  
  3. RUN mkdir /go/src/app
  4. ADD . /go/src/app
  5.  
  6. WORKDIR /go/src/app
  7.  
  8. #install the external dependecny that we have in the code
  9. RUN go get -u github.com/gorilla/mux
  10. #make the build of the app, output will be an executable file named main
  11. RUN go build -o main .
  12.  
  13. CMD ["/go/src/app/main"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement