1- <<<<<<< HEAD
2- # Use Python 3.12-slim-bullseye as the base image
3- FROM python:3.12-slim-bullseye
4- =======
51# Use Python 3.12-slim-bullseye as the base image unless overridden
62ARG BASEIMAGE=python:3.12-slim-bullseye
73FROM $BASEIMAGE
8- >>>>>>> origin/main
94
105# Environment variable for no-cache-dir and pip root user warning
116ENV PIP_NO_CACHE_DIR=1
@@ -18,13 +13,8 @@ ENV CLOUD_SDK_VERSION=latest
1813# Set DEBIAN_FRONTEND to noninteractive to avoid frontend errors
1914ENV DEBIAN_FRONTEND=noninteractive
2015
21- <<<<<<< HEAD
22- # Upgrade pip to the latest version
23- RUN python -m pip install --upgrade pip --no-warn-script-location
24- =======
2516# Upgrade pip to the latest version and install uv
2617RUN python -m pip install --upgrade pip uv --no-warn-script-location
27- >>>>>>> origin/main
2818
2919# Install system dependencies
3020RUN apt-get update && apt-get install -y apt-utils git curl gnupg procps iproute2 ethtool && rm -rf /var/lib/apt/lists/*
@@ -36,26 +26,12 @@ RUN curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dea
3626# Install the Google Cloud SDK
3727RUN apt-get update && apt-get install -y google-cloud-sdk && rm -rf /var/lib/apt/lists/*
3828
39- <<<<<<< HEAD
40- # Install cloud-accelerator-diagnostics
41- RUN pip install cloud-accelerator-diagnostics
42-
43- # Install cloud-tpu-diagnostics
44- RUN pip install cloud-tpu-diagnostics
45-
46- # Install gcsfs
47- RUN pip install gcsfs
48-
49- # Install google-cloud-storage
50- RUN pip install google-cloud-storage
51- =======
5229# Install diagnostic and storage dependencies using uv
5330RUN python -m uv pip install --system \
5431 cloud-accelerator-diagnostics \
5532 cloud-tpu-diagnostics \
5633 gcsfs \
5734 google-cloud-storage
58- >>>>>>> origin/main
5935
6036# Args
6137ARG MODE
0 commit comments