Skip to content

Commit ac393fe

Browse files
author
Googler
committed
fix(components): Replace base image to reduce vulnerabilities
fix(components): Limit google-api-core version to avoid timeout introduced in googleapis/python-api-core#462 PiperOrigin-RevId: 507613610
1 parent fd3f694 commit ac393fe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • components/google-cloud/google_cloud_pipeline_components/container

components/google-cloud/google_cloud_pipeline_components/container/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Base image to use for this docker
16-
FROM gcr.io/google-appengine/python:latest
16+
FROM gcr.io/ml-pipeline/debian-py37:latest
1717

1818
WORKDIR /root
1919

@@ -29,6 +29,9 @@ RUN pip3 install -U google-api-python-client
2929
# b/238481913: Pinning the version of apache_beam to below 2.34 for now
3030
RUN pip3 install -U "apache_beam[gcp]<2.34.0"
3131

32+
# b/267359259: Pinning the version of google-api-core to below 1.34.0 for now
33+
RUN pip3 install -U "google-api-core<1.34.0"
34+
3235
# Required for sklearn/train_test_split_jsonl
3336
RUN pip3 install -U "fsspec>=0.7.4" "gcsfs>=0.6.0" "pandas<=1.3.5" "scikit-learn<=1.0.2"
3437

0 commit comments

Comments
 (0)