Hi all,
I typically deploy Strapi backend separately from the front-end. The front-end is Webpack’d and deployed on static hosting with CDN.
Now, when deploying a Docker image of the backend, even at 500MB, it is huge! All of the front-end dependencies (Webpack, React, etc) are essentially installed along with it. Either if they are packaged in the image, or installed when the image is built, the entire huge dependency tree of the front-end and back-end are pulled in at some point.
Because of how Strapi is structured, I haven’t figured out a way to omit all the front-end dependencies when deploying the back-end separately…
Has anyone had thoughts about this?