mirror of
https://github.com/hanzoai/insights.git
synced 2026-10-30 16:15:31 +00:00
The rename turned upstream's own CDN into mmdbcdn.insights.net, a name nobody serves, and four images fetched their GeoLite2 city database from it — each one failing the moment that layer ran. They now read the same DB-IP source the root Dockerfile already used, so there is ONE way to get this file; the decompressor follows the format (gzip, not brotli). Verified against the live URL: 200, and the stream gunzips.
10 lines
238 B
Bash
Executable File
10 lines
238 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ ! -f mmdb.db ]]; then
|
|
sudo apt-get install -y curl ca-certificates brotli
|
|
curl -sS -L "https://download.db-ip.com/free/dbip-city-lite-$(date +%Y-%m).mmdb.gz" | gunzip > mmdb.db
|
|
fi
|
|
|
|
git pull
|
|
go build
|
|
./livestream |