Skip to content

Commit

Permalink
use alpine as base
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote authored and shitoumomo committed Jan 28, 2022
1 parent 6cc4104 commit 044b83d
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 @@ -10,6 +10,6 @@ WORKDIR /go/src/github.com/tencentyun/qcloud-exporter
ENV GOPATH=/go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -v -a -ldflags "-s -w" -o /go/bin/qcloud_exporter ./cmd/qcloud-exporter/

FROM scratch
FROM alpine
COPY --from=build-env /go/bin/qcloud_exporter /usr/bin/qcloud_exporter
ENTRYPOINT ["qcloud_exporter"]

0 comments on commit 044b83d

Please sign in to comment.