From a336225ac84c0e81905eb56d23e3c8018ea6529c Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sun, 27 Oct 2024 01:12:06 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2e2f07d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM golang@sha256:fe5bea2e1ab3ffebe0267393fea88fcb197e2dbbb1e2dbabeec6dd9ccb0e1871 AS builder + +COPY . /build +WORKDIR /build +RUN go build -o cert-exporter main.go + +FROM alpine@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d +COPY --from=builder /build/cert-exporter /opt/cert-exporter +ENTRYPOINT ["/opt/cert-exporter"]