pihole_exporter/dockerfile
2024-03-12 01:07:29 +01:00

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"]