Quellcode durchsuchen

added Dockerfile for battlecamp-go-server

Peter Oostenbach vor 10 Jahren
Ursprung
Commit
441c4ccf9f
1 geänderte Dateien mit 17 neuen und 0 gelöschten Zeilen
  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