I have a docker image that is about 900MB it has a directory /data
where all the data i want are in and also a /data/.git
directory that i will like to exclude.
I will like to create a data container(using busybox image for example) with only the data under the /data
excluding the /data/.git
directory
How do i do this in the most efficient way?
The /data
excluding the /data/.git
is only about 130MB
So basically i will have data container having roughly 130MB to 200MB compared to the other docker image that is 900MB huge
Thanks