Files
docker-images/apps/mosquitto-prometheus-exporter/Dockerfile
Udo Waechter e811e80f25
All checks were successful
continuous-integration/drone/push Build is passing
here we go
2024-01-16 13:18:26 +01:00

18 lines
428 B
Docker

FROM cr.wks/debian-golang AS build
ENV GOARCH=arm64
ENV GOPATH=/usr/src/gopath
ENV GOCACHE=/usr/src/gocache
RUN go env
WORKDIR /usr/src
RUN go install github.com/sapcc/mosquitto-exporter@latest
#RUN go mod download
FROM scratch
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
COPY --from=build /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
EXPOSE 9234
ENTRYPOINT [ "/mosquitto-exporter" ]