Peter Oostenbach 10 rokov pred
rodič
commit
1fb80a309d
1 zmenil súbory, kde vykonal 19 pridanie a 1 odobranie
  1. 19 1
      battlecamp-go-bot/Dockerfile-go-bot

+ 19 - 1
battlecamp-go-bot/Dockerfile-go-bot

@@ -1 +1,19 @@
-content
+# 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-bot
+
+# 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 ["chmod", "755", "/go/bin/battlecamp-go-bot"]
+
+# Run the battlecamp-go-server command by default when the container starts.
+ENTRYPOINT ["/go/bin/battlecamp-go-bot"]
+
+# Document that the service listens on port 8080.
+EXPOSE 8080