Skip to content

Commit 99ba784

Browse files
author
marwan37
committed
generate Dockerfile for oncoclear as an example
1 parent 8104d8e commit 99ba784

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

oncoclear/Dockerfile.sandbox

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Sandbox base image
2+
FROM safoinext/zenml-sandbox:latest
3+
4+
# Project metadata
5+
LABEL project_name="oncoclear"
6+
LABEL project_version="0.1.0"
7+
8+
# Install project-specific dependencies
9+
RUN pip install --no-cache-dir \
10+
"zenml[server]>=0.50.0" \
11+
"notebook" \
12+
"scikit-learn" \
13+
"pyarrow" \
14+
"pandas"
15+
16+
# Set workspace directory
17+
WORKDIR /workspace
18+
19+
# Clone only the project directory and reorganize
20+
RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \
21+
cp -r /tmp/zenml-projects/oncoclear/* /workspace/ && \
22+
rm -rf /tmp/zenml-projects
23+
24+
# Create a template .env file for API keys
25+
RUN echo "ZENML_PROJECT_SECRET_NAME=YOUR_ZENML_KEY_HERE" && \
26+
echo "ZENML_STORE_URL=YOUR_ZENML_KEY_HERE" && \
27+
echo "ZENML_STORE_API_KEY=YOUR_ZENML_KEY_HERE" > .env
28+
29+
# Create a .vscode directory and settings.json file
30+
RUN mkdir -p /workspace/.vscode && \
31+
echo '{\n'\
32+
' "workbench.colorTheme": "Default Dark Modern"\n'\
33+
'}' > /workspace/.vscode/settings.json
34+
35+

0 commit comments

Comments
 (0)