Parcourir la source

added Dockerfile for battlecamp-go-server

Peter Oostenbach il y a 10 ans
Parent
commit
441c4ccf9f
1 fichiers modifiés avec 17 ajouts et 0 suppressions
  1. 17 0
      Dockerfile-go-server

+ 17 - 0
Dockerfile-go-server

@@ -0,0 +1,17 @@
+# Start from a Debian image with the latest version of Go installed
+# and a workspace (GOPATH) configured at /go.
+FROM buildpack-deps:jessie-scm
+
+# Copy the local package files to the container's workspace.
+ADD bin/battlecamp-go-server /go/bin/battlecamp-go-server
+
+# Build the outyet command inside the container.
+# (You may fetch or manage dependencies here,
+# either manually or with a tool like "godep".)
+# RUN go install battlecamp-go-server
+
+# Run the battlecamp-go-server command by default when the container starts.
+ENTRYPOINT ["/go/bin/battlecamp-go-server"]
+
+# Document that the service listens on port 8080.
+EXPOSE 8080