Dockerfile-go-server 685 B

12345678910111213141516171819
  1. # Start from a Debian image with the latest version of Go installed
  2. # and a workspace (GOPATH) configured at /go.
  3. FROM buildpack-deps:jessie-scm
  4. # Copy the local package files to the container's workspace.
  5. ADD bin/battlecamp-go-server /go/bin/battlecamp-go-server
  6. # Build the outyet command inside the container.
  7. # (You may fetch or manage dependencies here,
  8. # either manually or with a tool like "godep".)
  9. # RUN go install battlecamp-go-server
  10. RUN ["chmod", "755", "/go/bin/battlecamp-go-server"]
  11. # Run the battlecamp-go-server command by default when the container starts.
  12. ENTRYPOINT ["/go/bin/battlecamp-go-server"]
  13. # Document that the service listens on port 8080.
  14. EXPOSE 8080