MaximeD/docker-react-native

Image size is very very vey large

nsisodiya opened this issue · 6 comments

I am using it on Mac machine. My Image size is very very large - 5.84 GB !!
How can we reduce the image size ?

Hello, yes I know, this is because of android sdk.

The directory /usr/local/android-sdk-linux takes 4.7GB. Unfortunatly those files are required, so I am afraid there is not much that can be done to reduce image size.

If disk space is a matter for you, consider storing your docker images to another drive.

If I store image at different machine, How I will create a container from it ?

Hi, it is not a matter of using another machine, but rather another partition. Just tell docker to use another path if you do not have enough space on the partition it currently uses.

You can find some instructions here or there.

Well for sure you could adapt Dockerfile to use alpine, but that won't reduce the size of java nor android sdk ;)

You should develope RN on host machine