066fbc22c1
* doc(readme): replace links from ebrianne to csfreak ebrianne's repo is no longer available * ci(GitHub): replace master with main * ci(GitHub): update release workflow versions * Update go.mod * build(docker): change dockerfile to go 1.21 * doc(readme): add attribution * package(main): rename * package(main): rename * package(adguard): rename * build(depenancies): update go dependancies * ci(github): remove deprecated versions * ci(github): upgrade actions * ci(github): typo * ci(github): adjust build and remove docker actions * doc(readme): update links * doc(readme): update links
18 lines
406 B
Docker
18 lines
406 B
Docker
FROM golang:1.21-alpine as build
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
|
|
WORKDIR /tmp/adguard_exporter
|
|
|
|
RUN apk --no-cache add git alpine-sdk
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags '-s -w' -o adguard_exporter ./
|
|
|
|
FROM scratch
|
|
LABEL name="adguard-exporter"
|
|
|
|
WORKDIR /root
|
|
COPY --from=build /tmp/adguard_exporter/adguard_exporter adguard_exporter
|
|
|
|
CMD ["./adguard_exporter"]
|