Skip to content

Commit 1e137d9

Browse files
committed
Revert "Revert "Install tensorflow-gcs-config from the python-tensorflow-whl (#788)""
This reverts commit 354a4eb.
1 parent 166a46a commit 1e137d9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG BASE_TAG=latest
22
ARG TENSORFLOW_VERSION=2.1.0
33

4-
FROM gcr.io/kaggle-images/python-tensorflow-whl:${TENSORFLOW_VERSION}-py37-2 as tensorflow_whl
4+
FROM gcr.io/kaggle-images/python-tensorflow-whl:${TENSORFLOW_VERSION}-py37-3 as tensorflow_whl
55
FROM gcr.io/deeplearning-platform-release/base-cpu:${BASE_TAG}
66

77
ADD clean-layer.sh /tmp/clean-layer.sh
@@ -59,6 +59,12 @@ RUN pip install /tmp/tensorflow_cpu/tensorflow*.whl && \
5959
rm -rf /tmp/tensorflow_cpu && \
6060
/tmp/clean-layer.sh
6161

62+
# Install tensorflow-gcs-config from a pre-built wheel
63+
COPY --from=tensorflow_whl /tmp/tensorflow_gcs_config/*.whl /tmp/tensorflow_gcs_config/
64+
RUN pip install /tmp/tensorflow_gcs_config/tensorflow*.whl && \
65+
rm -rf /tmp/tensorflow_gcs_config && \
66+
/tmp/clean-layer.sh
67+
6268
RUN apt-get install -y libfreetype6-dev && \
6369
apt-get install -y libglib2.0-0 libxext6 libsm6 libxrender1 libfontconfig1 --fix-missing && \
6470
pip install gensim && \

tests/test_imports.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ class TestImport(unittest.TestCase):
55
def test_basic(self):
66
import bq_helper
77
import cleverhans
8+
import tensorflow_gcs_config

0 commit comments

Comments
 (0)