This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
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" ]
|
||||
Reference in New Issue
Block a user