Feature: Add Docker Support - #8903
Conversation
|
@sodium16 is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
This PR adds Docker support, which is a significant enhancement for deployment and development workflows. It aligns with our ongoing efforts to improve user experience and streamline contributions. Please ensure that the Docker setup is well-documented in the README, as this will help new contributors. If you have any questions or need further assistance, feel free to reach out. Happy coding! |
There was a problem hiding this comment.
Pull request overview
Adds first-class Docker support so CommitPulse can be run and deployed in containers (including a local MongoDB via Compose), aligning with the self-hosting goals in #8284.
Changes:
- Document Docker-based workflows in
README.md(Compose for local runs +docker build/runfor production). - Enable Next.js standalone output to support slimmer runtime images.
- Add Docker artifacts:
Dockerfile,docker-compose.yml, and.dockerignore.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds Docker usage documentation for local and production container runs. |
| next.config.ts | Enables output: 'standalone' so Next builds can be packaged into a smaller runtime image. |
| Dockerfile | Introduces a multi-stage build that runs a Next standalone server in production. |
| docker-compose.yml | Defines an app service plus a MongoDB service for containerized local runs. |
| .dockerignore | Reduces Docker build context size and avoids copying local env files into builds. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| CommitPulse includes Docker support for consistent local development and production deployments. | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Docker | ||
| - Docker Compose | ||
|
|
||
| ### Local Development | ||
|
|
| ports: | ||
| - '27017:27017' |
📦 Next.js Bundle Size Report (Gzipped Sizes)✨ No significant bundle size changes detected. 📊 Summary of Totals
|
Description
Fixes #8284
Pillar
Visual Preview
Checklist before requesting a review:
CONTRIBUTING.mdfile.localhost:3000/api/streak?user=YOUR_USERNAME).npm run formatandnpm run lintlocally and resolved all errors (CI will fail otherwise).feat(themes): ...,fix(calculate): ...).README.mdif I added a new theme or URL parameter.