Skip to content

Commit

Permalink
Update Dockerfile to use alpine + ca-certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfm committed Apr 23, 2024
1 parent d2793b9 commit 628575c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <daniel.martins@jusbrasil.com.br>

RUN apk add --no-cache ca-certificates \
&& update-ca-certificates
COPY --from=build /app/bin/pingdom-exporter /pingdom-exporter
ENTRYPOINT ["/pingdom-exporter"]

Expand Down

0 comments on commit 628575c

Please sign in to comment.