From 60576a5b7eef46c12e8fad253a8220fe8aded760 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 6 Nov 2019 16:21:55 +0100 Subject: dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f4ace2c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM golang + +RUN go get \ + github.com/gorilla/mux && \ + mkdir /workdir + +WORKDIR /workdir + +COPY src /workdir/src +COPY hosted /workdir/hosted + +RUN go build -o /workdir/metrics src/*.go + +ENTRYPOINT ["./metrics"] + -- cgit 1.4.1