dnsmasq_exporter/Dockerfile

14 lines
260 B
Docker
Raw Normal View History

2019-06-17 15:40:24 +01:00
# build stage
2024-04-24 08:40:42 +01:00
FROM golang:1.22.2 AS build-env
2019-06-17 15:40:24 +01:00
ADD . /src
ENV CGO_ENABLED=0
WORKDIR /src
RUN go build -o dnsmasq_exporter
# final stage
FROM scratch
WORKDIR /app
COPY --from=build-env /src/dnsmasq_exporter /app/
USER 65534
2019-06-17 15:40:24 +01:00
ENTRYPOINT ["/app/dnsmasq_exporter"]