Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. FROM golang
  2. RUN export GO15VENDOREXPERIMENT=1
  3. ENV APPNAME ${APP_NAME}
  4.  
  5. # Copy the local package files to the container's workspace.
  6. ADD . /go/src/example.com/apps/
  7.  
  8. RUN go get github.com/tools/godep
  9.  
  10. # Restore all dependencies (one line, commands run independently)
  11. RUN cd /go/src/example.com/apps && godep restore
  12.  
  13. # Build all RSIN packages
  14. RUN go build -o /go/bin/api/app example.com/apps/api
  15.  
  16. # Run the outyet command by default when the container starts.
  17. WORKDIR /go/bin/$APPNAME
  18. ENTRYPOINT app
  19.  
  20. # Document that the service listens on port 8000.
  21. EXPOSE 8000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement