Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zyclonite authored Jan 15, 2024
1 parent 6fbf155 commit 22c64fa
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
@@ -1,8 +1,8 @@
FROM golang:1.21-alpine3.18
FROM golang:1.21-alpine3.19

WORKDIR /go/src/github.com/nats-io/prometheus-nats-exporter
RUN apk add --no-cache --purge --clean-protected -u git \
&& git clone --branch v0.13.0 https://github.com/nats-io/prometheus-nats-exporter.git . \
&& git clone --branch v0.14.0 https://github.com/nats-io/prometheus-nats-exporter.git . \
&& CGO_ENABLED=0 go build -v -a -tags netgo -installsuffix netgo -ldflags "-s -w"

FROM scratch
Expand Down

0 comments on commit 22c64fa

Please sign in to comment.