You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
473 B

FROM golang:1.14.7-alpine AS builder
RUN apk add --no-cache make git
WORKDIR /build
COPY go.mod go.sum /build/
RUN go mod download
RUN go mod verify
COPY . /build/
RUN make
FROM busybox
LABEL maintainer="Robert Jacob <>"
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /build/netatmo-exporter /bin/netatmo-exporter
USER nobody
ENTRYPOINT ["/bin/netatmo-exporter"]