| # debian.sh --arch 'amd64' out/ 'stable' '@1763337600' |
| RUN /bin/sh -c apt update && apt upgrade -y # buildkit |
| RUN /bin/sh -c apt install -y bind9utils ca-certificates curl # buildkit |
| COPY /go/src/geohaj/geohaj /app/geohaj # buildkit |
| RUN /bin/sh -c chmod +x /app/geohaj # buildkit |
| WORKDIR /app |
| COPY templates templates # buildkit |
| RUN /bin/sh -c mkdir /opt/data # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/maxmind/GeoLite2-ASN.mmdb -o /opt/data/GeoLite2-ASN.mmdb # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/maxmind/GeoLite2-City.mmdb -o /opt/data/GeoLite2-City.mmdb # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/maxmind/GeoLite2-Country.mmdb -o /opt/data/GeoLite2-Country.mmdb # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/db-ip/dbip-asn-lite.mmdb -o /opt/data/dbip-asn-lite.mmdb # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/db-ip/dbip-city-lite.mmdb -o /opt/data/dbip-city-lite.mmdb # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/db-ip/dbip-country-lite.mmdb -o /opt/data/dbip-country-lite.mmdb # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/ip2location/IP2LOCATION-LITE-DB9.BIN -o /opt/data/IP2LOCATION-LITE-DB9.BIN # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/ip2location/IP2LOCATION-LITE-DB9.IPV6.BIN -o /opt/data/IP2LOCATION-LITE-DB9.IPV6.BIN # buildkit |
| RUN /bin/sh -c curl https://mirror.calibour.net/.geoip/ipinfo/ipinfo_lite.mmdb -o /opt/data/ipinfo_lite.mmdb # buildkit |
| EXPOSE [8080/tcp] |
| CMD ["/app/geohaj"] |