-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f2f5cb
commit afec777
Showing
2 changed files
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
OSABR=$(echo $(uname)|tr '[:upper:]' '[:lower:]') | ||
DWN=/tmp/libtensorflow.tgz | ||
DIR=/tmp/libtf | ||
rm -rf $DIR | ||
mkdir $DIR | ||
rm -f $DWN | ||
URL=https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$OSABR-x86_64-1.1.0.tar.gz | ||
echo $URL | ||
curl $URL -o $DWN | ||
tar xzf $DWN -C $DIR | ||
sudo cp $DIR/lib/libtensorflow.so /usr/local/lib | ||
rm -rf $DIR | ||
wget $URL -O $DWN | ||
sudo tar xvf $DWN -C /usr/local ./lib/libtensorflow.so | ||
rm -f $DWN | ||
ls -l /usr/local/lib/libtensorflow.so |