All checks were successful
continuous-integration/drone/push Build is passing
19 lines
476 B
Docker
19 lines
476 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 /usr/src/gopath/bin/mosquitto-exporter /mosquitto-exporter
|
|
RUN chmod 0755 /mosquitto-exporter
|
|
|
|
EXPOSE 9234
|
|
|
|
ENTRYPOINT [ "/mosquitto-exporter" ] |