Commit b1d26866 by amir

for docker

parent db128b5a
#!/bin/sh
if [ -z "$1" ] || [ -z "$2" ]
then
echo "Usage $0 [path/to/bin] [docker-image]"
exit
fi
echo "prepare..."
rm -rf ./tmp
mkdir tmp
echo "copy dependencies from: " $1
#cp `ldd ./lib/libMicroservice.so | grep -v nux-vdso | awk '{print $3}'` ./tmp/
cp `ldd $1 | grep -v nux-vdso | awk '{print $3}'` ./tmp/
echo "build image: " $2
docker build -t $2 .
#cp ../3party/lib/*.so ./tmp/
#cp /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./tmp/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment