Skip to content

Commit 2b54d42

Browse files
authored
Merge pull request #216 from zenml-io/auto-dockerfile-vertex-registry-and-deployer
Auto-generate Dockerfile.codespace for vertex-registry-and-deployer
2 parents e148948 + 8d411d9 commit 2b54d42

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Sandbox base image
2+
FROM zenmldocker/zenml-sandbox:latest
3+
4+
# Install uv from official distroless image
5+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
6+
7+
# Set uv environment variables for optimization
8+
ENV UV_SYSTEM_PYTHON=1
9+
ENV UV_COMPILE_BYTECODE=1
10+
11+
# Project metadata
12+
LABEL project_name="vertex-registry-and-deployer"
13+
LABEL project_version="0.1.0"
14+
15+
# Install dependencies with uv and cache optimization
16+
RUN --mount=type=cache,target=/root/.cache/uv \
17+
uv pip install --system \
18+
"zenml[server]>=0.70.1" \
19+
"notebook" \
20+
"scikit-learn" \
21+
"pyarrow" \
22+
"pandas"
23+
24+
# Set workspace directory
25+
WORKDIR /workspace
26+
27+
# Clone only the project directory and reorganize
28+
RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \
29+
cp -r /tmp/zenml-projects/vertex-registry-and-deployer/* /workspace/ && \
30+
rm -rf /tmp/zenml-projects
31+
32+
# VSCode settings
33+
RUN mkdir -p /workspace/.vscode && \
34+
printf '{\n "workbench.colorTheme": "Default Dark Modern"\n}' > /workspace/.vscode/settings.json
35+
36+

0 commit comments

Comments
 (0)