mirror of
https://github.com/steinhobelgruen/netatmo-exporter.git
synced 2024-12-22 12:23:56 +00:00
24 lines
473 B
Docker
24 lines
473 B
Docker
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 <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"]
|