@@ -19,8 +19,9 @@ RUN mkdir -p $SYNTAXNETDIR \
19
19
libgraphviz-dev \
20
20
liblapack-dev \
21
21
libopenblas-dev \
22
- libpng12 -dev \
22
+ libpng -dev \
23
23
libxft-dev \
24
+ patch \
24
25
python-dev \
25
26
python-mock \
26
27
python-pip \
@@ -55,20 +56,22 @@ RUN python -m pip install \
55
56
&& rm -rf /root/.cache/pip /tmp/pip*
56
57
57
58
# 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
62
63
63
64
COPY WORKSPACE $SYNTAXNETDIR/syntaxnet/WORKSPACE
64
65
COPY tools/bazel.rc $SYNTAXNETDIR/syntaxnet/tools/bazel.rc
65
66
COPY tensorflow $SYNTAXNETDIR/syntaxnet/tensorflow
66
67
68
+ # Workaround solving the PYTHON_BIN_PATH not found problem
69
+ ENV PYTHON_BIN_PATH=/usr/bin/python
67
70
# Compile common TensorFlow targets, which don't depend on DRAGNN / SyntaxNet
68
71
# source. This makes it more convenient to re-compile DRAGNN / SyntaxNet for
69
72
# development (though not as convenient as the docker-devel scripts).
70
73
RUN cd $SYNTAXNETDIR/syntaxnet/tensorflow \
71
- && tensorflow/tools/ci_build/builds/configured CPU \
74
+ && ./configure CPU \
72
75
&& cd $SYNTAXNETDIR/syntaxnet \
73
76
&& bazel build -c opt @org_tensorflow//tensorflow:tensorflow_py
74
77
0 commit comments