openstatus
openstatus copied to clipboard
Fix #974: Use bun compile for API server
Type of change
- [ ] 🐛 Bug fix
- [x] 🌟 New feature
- [ ] 🔨 Breaking change
- [x] 📖 Refactoring / dependency upgrade / documentation
Description
This PR implements the use of bun compile for the API server. The main changes include:
- Modified the Dockerfile to use
bun build --compileinstead of directly running the server withbun start. - Adjusted the Docker build process to work from the project root, ensuring all workspace dependencies are available.
- Updated the CMD instruction to run the compiled binary instead of using
bun start.
These changes result in a significant reduction in initial memory usage, from 156 MB to 99 MB, potentially improving performance and resource efficiency.
Build Successful:
Closes #974
@sreeharsha-rav is attempting to deploy a commit to the OpenStatus Team on Vercel.
A member of the Team first needs to authorize it.
why are you raise a PR ? I am working on this issue .