Add a script for extracting a part of the built docker image
This commit is contained in:
1 parent
b82a138b79
commit
8c1647099f
1 file changed
+12
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo $0 image dir
|
||||
exit 1
|
||||
fi
|
||||
|
||||
image=$1
|
||||
dir=$2
|
||||
|
||||
rm -rf $dir
|
||||
docker run --rm $image tar -cf - $dir | tar -xvf -
|
||||
Reference in new issue
Block a user