# Copyright 2026 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== FROM ubuntu:26.04@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64 LABEL maintainer="Shanqing Cai " RUN apt-get update RUN apt-get install -y \ curl \ libcurl4-openssl-dev \ python \ python-pip # Install Google Cloud SDK RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/install_google_cloud_sdk.bash RUN chmod +x install_google_cloud_sdk.bash RUN ./install_google_cloud_sdk.bash --disable-prompts --install-dir=/var/gcloud # Install TensorFlow pip from build context. COPY tensorflow-*.whl / RUN pip install /tensorflow-*.whl # Copy test files RUN mkdir -p /gcs-smoke/python COPY gcs_smoke_wrapper.sh /gcs-smoke/ COPY python/gcs_smoke.py /gcs-smoke/python/