@@ -17,7 +17,7 @@ RUN cd /usr/local/src && \
1717 pip install keras_applications --no-deps && \
1818 pip install keras_preprocessing --no-deps
1919
20- # Create a TensorFlow wheel for CPU
20+ # Create a TensorFlow wheel for TPU
2121RUN cd /usr/local/src/tensorflow && \
2222 cat /dev/null | ./configure && \
2323 bazel build \
@@ -32,7 +32,22 @@ RUN cd /usr/local/src/tensorflow && \
3232RUN cd /usr/local/src/tensorflow && \
3333 bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
3434
35- # TODO(b/152075195): Will likely need to install custom build for TFA & tensorflow-gcs-config
35+ # Build TensorFlow addons library against TensorFlow CPU.
36+ # RUN cd /usr/local/src/ && \
37+ # git clone https://github.com/tensorflow/addons && \
38+ # cd addons && \
39+ # git checkout tags/v0.12.1 && \
40+ # python ./configure.py && \
41+ # bazel build --enable_runfiles build_pip_pkg && \
42+ # bazel-bin/build_pip_pkg /tmp/tfa_cpu && \
43+ # bazel clean
44+
45+ # Build tensorflow_gcs_config library against TensorFlow CPU.
46+ # ADD tensorflow-gcs-config /usr/local/src/tensorflow_gcs_config/
47+ # RUN cd /usr/local/src/tensorflow_gcs_config && \
48+ # apt-get install -y libcurl4-openssl-dev && \
49+ # python setup.py bdist_wheel -d /tmp/tensorflow_gcs_config && \
50+ # bazel clean
3651
3752# Use multi-stage builds to minimize image output size.
3853FROM alpine:latest
0 commit comments