Skip to content

Commit 1efac00

Browse files
authored
Auto-generate Dockerfile.codespace for credit-scorer
1 parent 98e4427 commit 1efac00

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

credit-scorer/Dockerfile.codespace

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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="credit-scorer"
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+
"cyclonedx-python-lib>=10.0.1" \
19+
"fairlearn>=0.12.0" \
20+
"lightgbm>=4.6.0" \
21+
"markdown>=3.8" \
22+
"matplotlib>=3.10.3" \
23+
"modal>=0.74.55" \
24+
"openpyxl>=3.1.5" \
25+
"pandas>=2.2.3" \
26+
"plotly>=6.0.1" \
27+
"scikit-learn>=1.6.1" \
28+
"seaborn>=0.13.2" \
29+
"slack-sdk>=3.35.0" \
30+
"streamlit>=1.45.1" \
31+
"streamlit-option-menu>=0.4.0" \
32+
"tabulate>=0.9.0" \
33+
"weasyprint>=65.1" \
34+
"xlsxwriter>=3.2.3" \
35+
"zenml>=0.82.1"
36+
37+
# Set workspace directory
38+
WORKDIR /workspace
39+
40+
# Clone only the project directory and reorganize
41+
RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \
42+
cp -r /tmp/zenml-projects/credit-scorer/* /workspace/ && \
43+
rm -rf /tmp/zenml-projects
44+
45+
# VSCode settings
46+
RUN mkdir -p /workspace/.vscode && \
47+
printf '{\n "workbench.colorTheme": "Default Dark Modern"\n}' > /workspace/.vscode/settings.json
48+
49+

0 commit comments

Comments
 (0)