Skip to content

Commit

Permalink
Fix nameserver in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jruatiny authored Dec 11, 2023
1 parent 1926aee commit 7962df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG SHA1="[no-sha]"
ARG TAG="[no-tag]"
ARG GOARCH

RUN printf "nameserver 1.1.1.1\nnameserver 8.8.8"> /etc/resolv.conf \ && apk --no-cache add ca-certificates git
RUN printf "nameserver 1.1.1.1\nnameserver 8.8.8.8"> /etc/resolv.conf \ && apk --no-cache add ca-certificates git
RUN BUILD_DATE=$(date +%F-%T) CGO_ENABLED=0 GOOS=linux GOARCH=$GOARCH go build -o /redis_exporter \
-ldflags "-s -w -extldflags \"-static\" -X main.BuildVersion=$TAG -X main.BuildCommitSha=$SHA1 -X main.BuildDate=$BUILD_DATE" .

Expand Down

0 comments on commit 7962df4

Please sign in to comment.