docker-react-native icon indicating copy to clipboard operation
docker-react-native copied to clipboard

Image size is very very vey large

Open nsisodiya opened this issue 8 years ago • 6 comments
trafficstars

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

nsisodiya avatar Feb 05 '17 08:02 nsisodiya

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.

MaximeD avatar Feb 05 '17 09:02 MaximeD

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

nsisodiya avatar Feb 05 '17 12:02 nsisodiya

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.

MaximeD avatar Feb 05 '17 14:02 MaximeD

i use mac, single drive. is it possbile to use some alpine base to reduce size

nsisodiya avatar Feb 05 '17 14:02 nsisodiya

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

MaximeD avatar Feb 05 '17 14:02 MaximeD

You should develope RN on host machine

anhhtz avatar Dec 06 '18 03:12 anhhtz