Files
docker-images/apps/mosquitto-prometheus-exporter/Dockerfile
Udo Waechter 5a96d89fc2
Some checks failed
continuous-integration/drone/push Build is failing
experimental features and copy chmod
2024-01-17 12:46:58 +01:00

18 lines
441 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 --chmod=0755 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
EXPOSE 9234
ENTRYPOINT [ "/mosquitto-exporter" ]