FROM golang:bullseye

# Install exporter from Golang source
RUN go install github.com/cirocosta/monero-exporter/cmd/monero-exporter@master

# Install GeoLite database
RUN wget https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb -O /geoip.mmdb

ENTRYPOINT [ "monero-exporter", "--geoip-filepath", "/geoip.mmdb" ]