@@ -37,6 +37,8 @@ RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/lib
37
37
38
38
# Keep these variables in sync if base image is updated.
39
39
ENV TENSORFLOW_VERSION=2.12.0
40
+ # See https://github.com/tensorflow/io#tensorflow-version-compatibility
41
+ ENV TENSORFLOW_IO_VERSION=0.32.0
40
42
41
43
# We need to redefine the ARG here to get the ARG value defined above the FROM instruction.
42
44
# See: https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
@@ -181,15 +183,17 @@ RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
181
183
pandas \
182
184
polars \
183
185
flax \
184
- "${JAXVER}"
186
+ "${JAXVER}" && \
187
+ /tmp/clean-layer.sh
185
188
186
- RUN apt-get install -y default-jre
189
+ RUN apt-get install -y default-jre && \
190
+ /tmp/clean-layer.sh
187
191
188
192
RUN pip install -f http://h2o-release.s3.amazonaws.com/h2o/latest_stable_Py.html h2o && /tmp/clean-layer.sh
189
193
190
194
RUN pip install \
191
- "tensorflow-gcs-config<=${TENSORFLOW_VERSION}" \
192
195
"tensorflow==${TENSORFLOW_VERSION}" \
196
+ "tensorflow-io==${TENSORFLOW_IO_VERSION}"\
193
197
tensorflow-addons \
194
198
tensorflow_decision_forests \
195
199
tensorflow_text && \
@@ -536,6 +540,7 @@ RUN pip install flashtext \
536
540
keras-cv \
537
541
keras-nlp && \
538
542
apt-get -y install libspatialindex-dev
543
+
539
544
RUN pip install pytorch-ignite \
540
545
qgrid \
541
546
bqplot \
@@ -616,7 +621,14 @@ RUN pip install --upgrade dask && \
616
621
pip install --force-reinstall --no-deps jupyter_server>=2.* && \
617
622
/tmp/clean-layer.sh
618
623
619
- RUN pip install setuptools==59.8.0 && pip install -e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper
624
+ # Fix to import bq_helper library without downgrading setuptools
625
+ RUN mkdir -p ~/src && git clone https://github.com/SohierDane/BigQuery_Helper ~/src/BigQuery_Helper && \
626
+ mkdir -p ~/src/BigQuery_Helper/bq_helper && \
627
+ mv ~/src/BigQuery_Helper/bq_helper.py ~/src/BigQuery_Helper/bq_helper/__init__.py && \
628
+ mv ~/src/BigQuery_Helper/test_helper.py ~/src/BigQuery_Helper/bq_helper/ && \
629
+ sed -i 's/)/packages=["bq_helper"])/g' ~/src/BigQuery_Helper/setup.py && \
630
+ pip install -e ~/src/BigQuery_Helper && \
631
+ /tmp/clean-layer.sh
620
632
621
633
# Add BigQuery client proxy settings
622
634
ENV PYTHONUSERBASE "/root/.local"
@@ -683,4 +695,4 @@ RUN echo "$GIT_COMMIT" > /etc/git_commit && echo "$BUILD_DATE" > /etc/build_date
683
695
{{ if eq .Accelerator "gpu" }}
684
696
# Remove the CUDA stubs.
685
697
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH_NO_STUBS"
686
- {{ end }}
698
+ {{ end }}
0 commit comments