I am working on deployment of my strapi app on AWS.
My plan of action is to package the app into a docker image and run it with docker-compose on a cluster of EC2 instances behind the AWS ALB.
The concern I have is about the size of the docker image that strapi project produces.
I build my docker image off the base ubuntu:18.04 which is only 73Mb but the final strapi image is 1.4Gb
REPOSITORY TAG IMAGE ID CREATED SIZE
strapi-server latest 055d3b7fca5a 9 hours ago 1.39GB
ubuntu latest 26b77e58432b 5 days ago 72.9MB
Has anyone successfully managed to compress/minify a strapi project (for production)?
I do not anticipate creating new types (i.e. modifying schema) in production but only creating entries for existing schemas.
Also, if I want to have a cluster of machines that serve just like API servers (no Admin UI needed) and have a dedicated machine for Admin IU, how do I go about cutting the Admin UI part with all its deps from those API-server builds?
I am keen to hear thoughts from those who have tried something and especially keen to hear from Strapi team.