Improve container images (#749)

* 🔒 chore(security): improve container image security

* 👌 chore(review): add cron job to Dockerfile for periodic tasks
This commit is contained in:
Patrick Stöckle
2026-01-24 22:21:19 +01:00
committed by GitHub
parent 7546abb122
commit 6318f4b4ad
5 changed files with 122 additions and 33 deletions

View File

@@ -79,17 +79,9 @@ jobs:
VERSION: ${{ needs.versioning.outputs.version }}
run: |
# Build db image
cd db
env GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o pocketbase_arm64
env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o pocketbase_amd64
cd ..
docker buildx build db/ --no-cache -t flomp/wanderer-db:$VERSION -t flomp/wanderer-db:latest --platform=linux/amd64,linux/arm64 --push
# Build web image
export PUBLIC_VALHALLA_URL=https://valhalla1.openstreetmap.de
cd web
npm ci && npm run build
cd ..
docker buildx build web/ --no-cache -t flomp/wanderer-web:$VERSION -t flomp/wanderer-web:latest --platform=linux/amd64,linux/arm64 --push
# Build docs image