fdb7ee666dcbc6f4bfd2946af1e238e6ae08e020
The python:3.12-slim base pushed a 30 MB layer that timed out on the way to Harbor (Cloudflare 524). A static Go binary keeps the image near 5 MB with the same endpoints, port and APP_MESSAGE variable.
aisp-ci-demo
Service mẫu để thử luồng Gitea CI của AISP: kết nối repository → scan Dockerfile → build → Release → deploy.
GET /trả JSON gồmversion,message(từ biếnAPP_MESSAGE) và hostname của Pod.GET /healthzdùng cho readiness check.- Lắng nghe cổng
8080, chạy non-root (UID 10001). - Viết bằng Go, image cuối là
scratchchỉ vài MB để push lên Harbor nhanh.
Thử thay đổi: sửa hằng version trong main.go, commit và push, rồi build lại trên console để thấy
phiên bản mới sau khi deploy.
Chạy local: docker build -t aisp-ci-demo . && docker run --rm -p 8080:8080 aisp-ci-demo
Description
Languages
Go
67.3%
Dockerfile
32.7%