diff options
author | Emile <hanemile@protonmail.com> | 2019-11-06 16:21:55 +0100 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-11-06 16:21:55 +0100 |
commit | 60576a5b7eef46c12e8fad253a8220fe8aded760 (patch) | |
tree | db91956291ff79897a487733f36e53221eb58a78 /Dockerfile | |
parent | c08c3f58ea355c971f76d6bac84d9166ddd33a22 (diff) |
dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 15 |
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"] + |