hudy9x / namviek

The open-source project manager for tiny teams
https://namviek.com
MIT License
2k stars 232 forks source link

Docker image size too big (2Gb) #252

Open hudy9x opened 4 days ago

hudy9x commented 4 days ago

The docker image is too big > 2GB for now. It's hard to push to some free registry like docker hub\ Need to optimize the docker image to < 1GB Try to separate backend and frontend into 2 image Regarding the backend, only install packages in production mode And the frontend, try to use 'standalone' config in next.config.js to export necessary package and files into one folder

hudy9x commented 1 day ago

For frontend image

=> Result: 2.2Gb -> 479mb

Let's try to optimize it less than 400mb