namviek
namviek copied to clipboard
Docker image size too big (2Gb)
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