Skip to content

Commit

Permalink
Enable multiarch builds with Dockerfile (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachard authored Oct 15, 2023
1 parent eb4810c commit abc33a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG VERSION
WORKDIR /build
COPY . .
RUN apk add git
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/prometheus/common/version.Version=$VERSION'"
RUN CGO_ENABLED=0 go build -ldflags="-s -w -X 'github.com/prometheus/common/version.Version=$VERSION'"


FROM alpine:3.18.4
Expand Down

0 comments on commit abc33a7

Please sign in to comment.