feat(build): add Docker support for emailks service

- Create multi-stage Dockerfile with builder and runtime stages
- Add .dockerignore to exclude unnecessary files and directories
- Configure builder stage with Rust toolchain and dependencies
- Set up runtime stage with minimal Debian base image
- Copy compiled binary from builder to runtime stage
- Expose port 50051 for gRPC service
- Add proper dependency caching for faster builds
- Include SSL certificates and required libraries in runtime
This commit is contained in:
zhenyi
2026-06-07 22:48:06 +08:00
parent 5fa7a82548
commit d0852ad131
2 changed files with 42 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
target/
.git/
.idea/
**/*.md