about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
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"]
+