From 2a7bad97cdaefef5f81d56a329022c9000b80378 Mon Sep 17 00:00:00 2001 From: Emile Date: Thu, 14 Mar 2019 15:08:39 +0100 Subject: wrote a simple Dockerfile --- Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6d993ef --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM golang:latest + +WORKDIR /home +COPY *.go /home/ + +RUN ["go", "get", "github.com/gorilla/mux"] +RUN ["go", "build", "-o", "metrics-bundler"] + +EXPOSE 8080 + +ENTRYPOINT ["./metrics-bundler"] -- cgit 1.4.1