File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1- RUN curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0.tar.gz -o /tmp/tflib.tgz && rmdir -rf /tmp/tf && mkdir /tmp/tf && tar xzf /tmp/tflib.tgz -C /tmp/tf && sudo cp /tmp/tf/ lib/libtensorflow.so /usr/local/lib && rm -rf /tmp/tf && rm /tmp/tflib.tgz
1+ RUN wget https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.1.0.tar.gz -O /tmp/tflib.tgz && tar xvf /tmp/tflib.tgz -C /usr/local ./ lib/libtensorflow.so && rm /tmp/tflib.tgz
Original file line number Diff line number Diff line change 11OSABR=$( echo $( uname) | tr ' [:upper:]' ' [:lower:]' )
22DWN=/tmp/libtensorflow.tgz
3- DIR=/tmp/libtf
4- rm -rf $DIR
5- mkdir $DIR
6- rm -f $DWN
73URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR -x86_64-1.1.0.tar.gz
84echo $URL
9- curl $URL -o $DWN
10- tar xzf $DWN -C $DIR
11- sudo cp $DIR /lib/libtensorflow.so /usr/local/lib
12- rm -rf $DIR
5+ wget $URL -O $DWN
6+ sudo tar xvf $DWN -C /usr/local ./lib/libtensorflow.so
137rm -f $DWN
148ls -l /usr/local/lib/libtensorflow.so
You can’t perform that action at this time.
0 commit comments