about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-11-06 16:21:55 +0100
committerEmile <hanemile@protonmail.com>2019-11-06 16:21:55 +0100
commit60576a5b7eef46c12e8fad253a8220fe8aded760 (patch)
treedb91956291ff79897a487733f36e53221eb58a78
parentc08c3f58ea355c971f76d6bac84d9166ddd33a22 (diff)
dockerfile
-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"]
+