Skip to content

Commit

Permalink
fix(components): Replace base image to reduce vulnerabilities
Browse files Browse the repository at this point in the history
fix(components): Limit google-api-core version to avoid timeout introduced in googleapis/python-api-core#462

PiperOrigin-RevId: 507613610
  • Loading branch information
Googler committed Feb 9, 2023
1 parent fd3f694 commit c1ec591
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

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

WORKDIR /root

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

# b/267359259: Pinning the version of google-api-core to below 1.34.0 for now
RUN pip3 install -U "google-api-core<1.34.0"

# Required for sklearn/train_test_split_jsonl
RUN pip3 install -U "fsspec>=0.7.4" "gcsfs>=0.6.0" "pandas<=1.3.5" "scikit-learn<=1.0.2"

Expand Down

0 comments on commit c1ec591

Please sign in to comment.