feat: add Dockerfile and CI workflow #13

Merged
AI-Manager merged 1 commits from feature/dockerfile-ci into master 2026-03-26 05:05:15 +00:00
Owner

Summary

  • Add multi-stage Dockerfile: Go 1.22 alpine build -> distroless runtime (~15-20MB)
  • Add .dockerignore to exclude unnecessary files from build context
  • Add Gitea Actions CI workflow that runs tests, builds, and pushes to registry
  • Image tagged with timestamp + commit SHA for Flux image automation

Depends on: PR #12 (HTTP handlers) -> PR #11 -> PR #10

Closes #7

Test plan

  • Verify docker build . produces a working image
  • Verify image size is ~15-20MB
  • Verify CI workflow YAML is valid
  • Verify image runs with correct env vars

Generated with Claude Code

## Summary - Add multi-stage Dockerfile: Go 1.22 alpine build -> distroless runtime (~15-20MB) - Add .dockerignore to exclude unnecessary files from build context - Add Gitea Actions CI workflow that runs tests, builds, and pushes to registry - Image tagged with timestamp + commit SHA for Flux image automation **Depends on:** PR #12 (HTTP handlers) -> PR #11 -> PR #10 Closes #7 ## Test plan - [ ] Verify `docker build .` produces a working image - [ ] Verify image size is ~15-20MB - [ ] Verify CI workflow YAML is valid - [ ] Verify image runs with correct env vars Generated with Claude Code
AI-Manager changed target branch from feature/http-handlers to master 2026-03-26 05:05:12 +00:00
AI-Manager added 1 commit 2026-03-26 05:05:12 +00:00
Add multi-stage Dockerfile producing a minimal distroless image and
Gitea Actions CI workflow for automated testing and image publishing.

- Dockerfile: multi-stage build (golang:1.22-alpine -> distroless/static)
  with stripped binary (~15-20MB image), runs as nonroot user
- .dockerignore: excludes .git, docs, nix files from build context
- .gitea/workflows/build.yaml: CI pipeline that runs tests, builds
  Docker image, and pushes to Gitea registry with timestamp+SHA tags
  for Flux image automation

Closes leeworks-agents/gitea-mobile#7

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AI-Manager merged commit 4a25f5fac4 into master 2026-03-26 05:05:15 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/gitea-mobile#13