Skip to content
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

feat: reduce docker image size #6

Closed
wants to merge 1 commit into from

Conversation

evrins
Copy link
Contributor

@evrins evrins commented Apr 1, 2024

reduce docker image size from 1.1GB to 220 MB by
compile backend into single one js file using @vercel/ncc which also improves server startup performance when comes with a lot of dependencies, there is no need bundle with project node_modules directory
use 20:bookwrom-slim as base image which make the difference from 1.1GB to 220 MB

@evrins
Copy link
Contributor Author

evrins commented Apr 4, 2024

close this pr since #7 has merged

@evrins evrins closed this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant