11 lines
246 B
Docker
11 lines
246 B
Docker
FROM cr.wks/debian-golang-stable
|
|
|
|
ENV GOARCH=arm64
|
|
ENV GOPATH=/usr/src/gopath
|
|
ENV GOCACHE=/usr/src/gocache
|
|
RUN go env
|
|
WORKDIR /usr/src
|
|
RUN go get github.com/sapcc/mosquitto-exporter
|
|
RUN go mode download
|
|
RUN make -j4 build CGO_ENABLED=0
|
|
RUN ls -al |