feat(docker): Preseed cities database and fix multi-arch builds

Bake the GeoNames cities database into the image at build time instead
of relying on host-mounted sqlite files, and fix the Go build stage to
cross-compile for the requested target platform instead of hardcoding
amd64 (was silently broken for arm64 builds).
This commit is contained in:
abdus committed 2026-10-08 21:29:02 +02:00
1 parent dc25633f61
commit c3bf3eca8d
2 files changed
+12 -7

No files matched your search

-5
View File
@@ -8,9 +8,4 @@ services:
- "8000:8000"
environment:
PORT: "8000"
DB_PATH: "/data/prayertimes.sqlite3"
volumes:
- ./prayertimes.sqlite3:/data/prayertimes.sqlite3
- ./prayertimes.sqlite3-wal:/data/prayertimes.sqlite3-wal
- ./prayertimes.sqlite3-shm:/data/prayertimes.sqlite3-shm
restart: unless-stopped