summaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile
new file mode 100644
index 0000000..ab739df
--- /dev/null
+++ b/Containerfile
@@ -0,0 +1,13 @@
+FROM alpine:edge AS builder
+
+RUN apk add --no-cache go
+
+COPY . /usr/src
+WORKDIR /usr/src
+RUN go build
+
+FROM alpine:latest
+
+COPY --from=builder /usr/src/main /usr/local/bin/exporter
+
+CMD ["/usr/local/bin/exporter"]