@@ -17,7 +17,7 @@ RUN cd /usr/local/src && \
17
17
pip install keras_applications --no-deps && \
18
18
pip install keras_preprocessing --no-deps
19
19
20
- # Create a TensorFlow wheel for CPU
20
+ # Create a TensorFlow wheel for TPU
21
21
RUN cd /usr/local/src/tensorflow && \
22
22
cat /dev/null | ./configure && \
23
23
bazel build \
@@ -32,7 +32,22 @@ RUN cd /usr/local/src/tensorflow && \
32
32
RUN cd /usr/local/src/tensorflow && \
33
33
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg
34
34
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
36
51
37
52
# Use multi-stage builds to minimize image output size.
38
53
FROM alpine:latest
0 commit comments