Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM golang
- RUN export GO15VENDOREXPERIMENT=1
- ENV APPNAME ${APP_NAME}
- # Copy the local package files to the container's workspace.
- ADD . /go/src/example.com/apps/
- RUN go get github.com/tools/godep
- # Restore all dependencies (one line, commands run independently)
- RUN cd /go/src/example.com/apps && godep restore
- # Build all RSIN packages
- RUN go build -o /go/bin/api/app example.com/apps/api
- # Run the outyet command by default when the container starts.
- WORKDIR /go/bin/$APPNAME
- ENTRYPOINT app
- # Document that the service listens on port 8000.
- EXPOSE 8000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement