Skip to content

Commit 492257c

Browse files
authored
Only upgrade pyarrow on CPU image
1 parent 496c394 commit 492257c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ RUN pip install spacy && \
114114

115115
# b/232247930: uninstall pyarrow to avoid double installation with the GPU specific version.
116116
RUN pip uninstall -y pyarrow && \
117-
mamba install -y "pyarrow>=14.0.1" cudf cuml && \
117+
mamba install -y cudf cuml && \
118118
/tmp/clean-layer.sh
119119

120120
# TODO: b/296444923 - Resolve pandas dependency another way
@@ -481,7 +481,7 @@ RUN pip install bleach \
481481
webencodings \
482482
widgetsnbextension \
483483
# Require pyarrow newer than https://github.com/advisories/GHSA-5wvp-7f3h-6wmm
484-
"pyarrow>=14.0.1" \
484+
{{ if eq .Accelerator "gpu" }} pyarrow {{ else }} "pyarrow>=14.0.1" {{ end }} \
485485
feather-format \
486486
fastai
487487

0 commit comments

Comments
 (0)