Skip to content

Commit 638fd75

Browse files
author
Ivan Bogatyy
authored
Merge pull request tensorflow#2723 from short-edition/master
Fix SyntaxNet/DRAGNN Dockerfile build
2 parents 79264e3 + 7800075 commit 638fd75

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

research/syntaxnet/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ RUN mkdir -p $SYNTAXNETDIR \
1919
libgraphviz-dev \
2020
liblapack-dev \
2121
libopenblas-dev \
22-
libpng12-dev \
22+
libpng-dev \
2323
libxft-dev \
24+
patch \
2425
python-dev \
2526
python-mock \
2627
python-pip \
@@ -55,20 +56,22 @@ RUN python -m pip install \
5556
&& rm -rf /root/.cache/pip /tmp/pip*
5657

5758
# Installs the latest version of Bazel.
58-
RUN wget --quiet https://github.com/bazelbuild/bazel/releases/download/0.4.3/bazel-0.4.3-installer-linux-x86_64.sh \
59-
&& chmod +x bazel-0.4.3-installer-linux-x86_64.sh \
60-
&& ./bazel-0.4.3-installer-linux-x86_64.sh \
61-
&& rm ./bazel-0.4.3-installer-linux-x86_64.sh
59+
RUN wget --quiet https://github.com/bazelbuild/bazel/releases/download/0.5.4/bazel-0.5.4-installer-linux-x86_64.sh \
60+
&& chmod +x bazel-0.5.4-installer-linux-x86_64.sh \
61+
&& ./bazel-0.5.4-installer-linux-x86_64.sh \
62+
&& rm ./bazel-0.5.4-installer-linux-x86_64.sh
6263

6364
COPY WORKSPACE $SYNTAXNETDIR/syntaxnet/WORKSPACE
6465
COPY tools/bazel.rc $SYNTAXNETDIR/syntaxnet/tools/bazel.rc
6566
COPY tensorflow $SYNTAXNETDIR/syntaxnet/tensorflow
6667

68+
# Workaround solving the PYTHON_BIN_PATH not found problem
69+
ENV PYTHON_BIN_PATH=/usr/bin/python
6770
# Compile common TensorFlow targets, which don't depend on DRAGNN / SyntaxNet
6871
# source. This makes it more convenient to re-compile DRAGNN / SyntaxNet for
6972
# development (though not as convenient as the docker-devel scripts).
7073
RUN cd $SYNTAXNETDIR/syntaxnet/tensorflow \
71-
&& tensorflow/tools/ci_build/builds/configured CPU \
74+
&& ./configure CPU \
7275
&& cd $SYNTAXNETDIR/syntaxnet \
7376
&& bazel build -c opt @org_tensorflow//tensorflow:tensorflow_py
7477

0 commit comments

Comments
 (0)