Files
docker-images/apps/mosquitto-prometheus-exporter/Dockerfile
Udo Waechter 0075dac22d
Some checks failed
continuous-integration/drone/push Build is failing
chmod?
2024-01-16 14:38:00 +01:00

19 lines
467 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 cr.wks/debian-stable
LABEL source_repository="https://github.com/sapcc/mosquitto-exporter"
COPY --from=build --chmod=0755 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
RUN ls -la /
EXPOSE 9234
ENTRYPOINT [ "/mosquitto-exporter" ]