Commit Graph

9 Commits

Author SHA1 Message Date
igodwin 1cbe58888c Implement production and development build targets with binary size optimization
- Add LDFLAGS_BASE for version info only, LDFLAGS for production (with -s -w optimization), and LDFLAGS_DEV for development
- Create 'build' target (production) that strips symbols, reducing binary size by ~30% (56MB -> 39MB)
- Create 'build-dev' target (development) that keeps debug symbols for profiling
- Update 'docker-build' to pass BUILD_FLAGS="-s -w" for optimized production images
- Create 'docker-build-dev' target that builds development images with notifier:latest-dev tag and no optimization
- Update Dockerfile to accept and use BUILD_FLAGS argument in build stage
- All targets now clearly indicate their optimization level in output messages
2025-10-31 00:06:42 -07:00
igodwin 8cf369cc38 Fix Docker build by adding protobuf code generation step
The Docker build was failing because protobuf-generated code wasn't
  available during compilation. Changes made:
  - Added protoc and protobuf-dev packages to build dependencies
  - Installed protoc-gen-go and protoc-gen-go-grpc plugins
  - Added make proto-gen step to generate pb files before build

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

  Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-22 23:46:47 -07:00
igodwin 8229944149 Change logging and implement gRPC 2025-10-18 23:12:25 -07:00
igodwin aed1a3b6a1 Update go version in docker build stage to 1.24 2025-10-17 20:38:27 -07:00
igodwin c15f1a50ca Update config naming and doc 2025-10-17 20:36:29 -07:00
igodwin ba3fad9431 Tidying up 2025-10-16 22:10:47 -07:00
igodwin 46b6008981 Fix build command in Dockerfile 2025-10-16 21:45:17 -07:00
igodwin 9087a710e5 Basic impl added 2025-10-16 21:22:51 -07:00
igodwin 46d3b66feb Add basic project layout 2024-11-01 19:36:58 -07:00