mirror of
https://github.com/steinhobelgruen/netatmo-exporter.git
synced 2024-11-21 17:03:56 +00:00
24 lines
473 B
Docker
24 lines
473 B
Docker
FROM golang:1.14.4-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 <xperimental@solidproject.de>"
|
|
|
|
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
|
|
EXPOSE 9210
|
|
|
|
ENTRYPOINT ["/bin/netatmo-exporter"]
|