build(docker): add Dockerfile and .dockerignore for containerization

- Create multi-stage Dockerfile with cargo-chef optimization
- Add .dockerignore to exclude unnecessary files from build context
- Include protobuf compiler and development dependencies in builder stage
- Set up proper user permissions and health check
- Configure release build with strip for smaller image size
- Add curl dependency for health check functionality
This commit is contained in:
zhenyi
2026-06-11 13:58:20 +08:00
parent 0dbac480ae
commit 1b300865d9
2 changed files with 61 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
# Build artifacts
target/
# IDE
.idea/
.codegraph/
# Git
.git/
.gitignore
# Documentation (not needed at build time)
*.md
!rpc.md
# Environment files
.env
.env.local
# OS files
.DS_Store
Thumbs.db