From 628575cbd6217c5454194d5105afaf17a66e0663 Mon Sep 17 00:00:00 2001 From: Daniel Martins <29534+danielfm@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:40:03 -0300 Subject: [PATCH] Update Dockerfile to use alpine + ca-certificates --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fa4cf13..14a4d5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,14 @@ -FROM golang:1.19 AS build +FROM golang:1.22 AS build WORKDIR /app ADD . . RUN make build -FROM centurylink/ca-certs +FROM alpine:latest MAINTAINER Daniel Martins +RUN apk add --no-cache ca-certificates \ + && update-ca-certificates COPY --from=build /app/bin/pingdom-exporter /pingdom-exporter ENTRYPOINT ["/pingdom-exporter"]