23 lines
397 B
Plaintext
23 lines
397 B
Plaintext
FROM alpine as build-pihole-exporter
|
|
|
|
WORKDIR /build
|
|
|
|
RUN apk update
|
|
RUN apk add go
|
|
|
|
ENV GOPATH /build
|
|
RUN go install github.com/eko/pihole-exporter@latest
|
|
|
|
FROM alpine
|
|
COPY --from=build-pihole-exporter "/build/bin/pihole-exporter" /bin
|
|
|
|
RUN apk update
|
|
run apk add bash
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/bin/bash"]
|
|
|
|
EXPOSE ${PORT}
|
|
CMD ["/entrypoint.sh"]
|