Add Dockerfile
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
PapaTutuWawa 2024-10-27 01:12:06 +02:00
parent 32517b4e41
commit a336225ac8

9
Dockerfile Normal file
View File

@ -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"]