Skip to content

Commit

Permalink
Change Docker base image
Browse files Browse the repository at this point in the history
In Alpine image exist library, which is vulnerable and LogstashExporter dont need this library.
In Scratch image this library dont exist.
  • Loading branch information
LHozzan authored Jul 8, 2022
1 parent cc93137 commit 4d21902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ WORKDIR /src/
COPY go.mod go.sum main.go ./
RUN apk -U add binutils && CGO_ENABLED=0 go build -o prometheus-logstash-exporter && strip prometheus-logstash-exporter

FROM alpine
FROM scratch
WORKDIR /
COPY --from=builder /src/prometheus-logstash-exporter /
EXPOSE 9304
ENTRYPOINT ["/prometheus-logstash-exporter"]
ENTRYPOINT ["/prometheus-logstash-exporter"]

0 comments on commit 4d21902

Please sign in to comment.