Skip to content

Commit b6880e1

Browse files
authored
Auto-generate Dockerfile.codespace for sign-language-detection-yolov5
1 parent a2410ff commit b6880e1

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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="sign-language-detection-yolov5"
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>=0.73.0" \
19+
"roboflow==0.2.18" \
20+
"albumentations==1.3.0" \
21+
"albumentations[imgaug]" \
22+
"itsdangerous>=2.2" \
23+
"Werkzeug>=3.1" \
24+
"bentoml==1.3.5" \
25+
"torch==2.0.1" \
26+
"numpy==1.26.4" \
27+
"yolov5==7.0.10"
28+
29+
# Set workspace directory
30+
WORKDIR /workspace
31+
32+
# Clone only the project directory and reorganize
33+
RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \
34+
cp -r /tmp/zenml-projects/sign-language-detection-yolov5/* /workspace/ && \
35+
rm -rf /tmp/zenml-projects
36+
37+
# VSCode settings
38+
RUN mkdir -p /workspace/.vscode && \
39+
printf '{\n "workbench.colorTheme": "Default Dark Modern"\n}' > /workspace/.vscode/settings.json
40+
41+

0 commit comments

Comments
 (0)