Dockerfile-go-server 706 B

123456789101112131415161718192021
  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. ENV HOST_UID=$UID HOST_GID=$GID
  5. # Copy the local package files to the container's workspace.
  6. ADD bin/battlecamp-go-server /go/bin/battlecamp-go-server
  7. # Build the outyet command inside the container.
  8. # (You may fetch or manage dependencies here,
  9. # either manually or with a tool like "godep".)
  10. # RUN go install battlecamp-go-server
  11. RUN ["chown -R $HOST_UID:$HOST_GID /go"]
  12. # Run the battlecamp-go-server command by default when the container starts.
  13. ENTRYPOINT ["/go/bin/battlecamp-go-server"]
  14. # Document that the service listens on port 8080.
  15. EXPOSE 8080