From 8d411d98efbcf5dcb8c8d460110e6aae48c099dd Mon Sep 17 00:00:00 2001 From: strickvl Date: Sat, 17 May 2025 16:35:45 +0000 Subject: [PATCH] Auto-generate Dockerfile.codespace for vertex-registry-and-deployer --- .../Dockerfile.codespace | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 vertex-registry-and-deployer/Dockerfile.codespace diff --git a/vertex-registry-and-deployer/Dockerfile.codespace b/vertex-registry-and-deployer/Dockerfile.codespace new file mode 100644 index 00000000..2d4df9e8 --- /dev/null +++ b/vertex-registry-and-deployer/Dockerfile.codespace @@ -0,0 +1,36 @@ +# Sandbox base image +FROM zenmldocker/zenml-sandbox:latest + +# Install uv from official distroless image +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ + +# Set uv environment variables for optimization +ENV UV_SYSTEM_PYTHON=1 +ENV UV_COMPILE_BYTECODE=1 + +# Project metadata +LABEL project_name="vertex-registry-and-deployer" +LABEL project_version="0.1.0" + +# Install dependencies with uv and cache optimization +RUN --mount=type=cache,target=/root/.cache/uv \ + uv pip install --system \ + "zenml[server]>=0.70.1" \ + "notebook" \ + "scikit-learn" \ + "pyarrow" \ + "pandas" + +# Set workspace directory +WORKDIR /workspace + +# Clone only the project directory and reorganize +RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \ + cp -r /tmp/zenml-projects/vertex-registry-and-deployer/* /workspace/ && \ + rm -rf /tmp/zenml-projects + +# VSCode settings +RUN mkdir -p /workspace/.vscode && \ + printf '{\n "workbench.colorTheme": "Default Dark Modern"\n}' > /workspace/.vscode/settings.json + +