-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add Docker support for containerized deployment #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Docker support for containerized deployment #3
Conversation
…ployment Co-authored-by: warengonzaga <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces Docker support for the Unthread Webhook Server, providing a multi-stage build Dockerfile with production-ready configuration and a comprehensive .dockerignore to streamline build contexts.
- Multi-stage Dockerfile including build and production stages, non-root user, and health check
.dockerignoreexcludes unnecessary files to reduce build context size and improve performance
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| Dockerfile | Added multi-stage build, non-root user setup, health check, and optimized layer caching |
| .dockerignore | Excluded dependencies, build artifacts, documentation, and other unnecessary files from the Docker build context |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, I need to update some part of it but that would be a PR for dev branch not here.
This PR adds Docker support to the Unthread Webhook Server, enabling easy containerized deployment with production-ready configuration.
Changes Made
🐳 Added
Dockerfilewith multi-stage buildnodejs:nodejs) for enhanced security/healthendpoint📁 Added
.dockerignorenode_modules,dist,.git,.env, etc.)Usage
Docker Compose Example
Verification
The containerized application maintains full compatibility with the existing codebase while providing a standardized deployment method across different environments.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.