Skip to content

Commit 2be6375

Browse files
author
marwan37
committed
add Dockerfile.sandbox for zencoder, support-agent and sign-language projects
1 parent 8aed489 commit 2be6375

File tree

3 files changed

+141
-0
lines changed

3 files changed

+141
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Sandbox base image
2+
FROM safoinext/zenml-sandbox:latest
3+
4+
# Project metadata
5+
LABEL project_name="sign-language-detection-yolov5"
6+
LABEL project_version="0.1.0"
7+
8+
# Install project-specific dependencies
9+
RUN pip install --no-cache-dir \
10+
"zenml>=0.73.0" \
11+
"roboflow==0.2.18" \
12+
"albumentations==1.3.0" \
13+
"albumentations[imgaug]" \
14+
"itsdangerous>=2.2" \
15+
"Werkzeug>=3.1" \
16+
"bentoml==1.3.5" \
17+
"torch==2.0.1" \
18+
"numpy==1.26.4" \
19+
"yolov5==7.0.10"
20+
21+
# Set workspace directory
22+
WORKDIR /workspace
23+
24+
# Clone only the project directory and reorganize
25+
RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \
26+
cp -r /tmp/zenml-projects/sign-language-detection-yolov5/* /workspace/ && \
27+
rm -rf /tmp/zenml-projects
28+
29+
# Create a template .env file for API keys
30+
RUN echo "API_KEY=YOUR_API_KEY_HERE=YOUR_API_KEY_HERE" > .env
31+
32+
# Create a .vscode directory and settings.json file
33+
RUN mkdir -p /workspace/.vscode && \
34+
echo '{\n'\
35+
' "workbench.colorTheme": "Default Dark Modern"\n'\
36+
'}' > /workspace/.vscode/settings.json
37+
38+

zencoder/Dockerfile.sandbox

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Sandbox base image
2+
FROM safoinext/zenml-sandbox:latest
3+
4+
# Project metadata
5+
LABEL project_name="zencoder"
6+
LABEL project_version="0.1.0"
7+
8+
# Install project-specific dependencies
9+
RUN pip install --no-cache-dir \
10+
"zenml[server]>=0.73.0" \
11+
"packaging" \
12+
"notebook" \
13+
"datasets" \
14+
"nbformat" \
15+
"pandas" \
16+
"PyGithub" \
17+
"ninja" \
18+
"kfp>=2.6.0" \
19+
"gcsfs" \
20+
"google-cloud-secret-manager" \
21+
"google-cloud-container>=2.21.0" \
22+
"google-cloud-artifact-registry>=1.11.3" \
23+
"google-cloud-storage>=2.9.0" \
24+
"google-cloud-aiplatform>=1.34.0" \
25+
"google-cloud-build>=3.11.0" \
26+
"kubernetes" \
27+
"git+https://github.com/huggingface/transformers" \
28+
"git+https://github.com/huggingface/accelerate" \
29+
"git+https://github.com/huggingface/peft" \
30+
"trl" \
31+
"huggingface-hub" \
32+
"bitsandbytes" \
33+
"evaluate" \
34+
"einops" \
35+
"wandb>=0.12.12" \
36+
"tiktoken" \
37+
"deepspeed" \
38+
"tqdm==4.65.0" \
39+
"safetensors"
40+
41+
# Set workspace directory
42+
WORKDIR /workspace
43+
44+
# Clone only the project directory and reorganize
45+
RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \
46+
cp -r /tmp/zenml-projects/zencoder/* /workspace/ && \
47+
rm -rf /tmp/zenml-projects
48+
49+
# Create a template .env file for API keys
50+
RUN echo "GH_ACCESS_TOKEN=YOUR_GH_KEY_HERE" && \
51+
echo "HF_TOKEN=YOUR_HUGGINGFACE_TOKEN_HERE" && \
52+
echo "OPENAI_API_KEY=YOUR_OPENAI_KEY_HERE" > .env
53+
54+
# Create a .vscode directory and settings.json file
55+
RUN mkdir -p /workspace/.vscode && \
56+
echo '{\n'\
57+
' "workbench.colorTheme": "Default Dark Modern"\n'\
58+
'}' > /workspace/.vscode/settings.json
59+
60+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Sandbox base image
2+
FROM safoinext/zenml-sandbox:latest
3+
4+
# Project metadata
5+
LABEL project_name="zenml-support-agent"
6+
LABEL project_version="0.1.0"
7+
8+
# Install project-specific dependencies
9+
RUN pip install --no-cache-dir \
10+
"langchain==0.3.15" \
11+
"langchain-openai==0.3.1" \
12+
"langchain-community" \
13+
"zenml==0.73.0" \
14+
"fastapi" \
15+
"flask" \
16+
"uvicorn" \
17+
"gcsfs==2023.5.0" \
18+
"faiss-cpu==1.7.3" \
19+
"unstructured==0.16.5" \
20+
"tiktoken" \
21+
"bs4" \
22+
"typing_extensions"
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/zenml-support-agent/* /workspace/ && \
30+
rm -rf /tmp/zenml-projects
31+
32+
# Create a template .env file for API keys
33+
RUN echo "OPENAI_API_KEY=YOUR_OPENAI_KEY_HERE" && \
34+
echo "ZENML_PROJECT_SECRET_NAME=YOUR_ZENML_KEY_HERE" && \
35+
echo "GH_ACCESS_TOKEN=YOUR_GH_KEY_HERE" > .env
36+
37+
# Create a .vscode directory and settings.json file
38+
RUN mkdir -p /workspace/.vscode && \
39+
echo '{\n'\
40+
' "workbench.colorTheme": "Default Dark Modern"\n'\
41+
'}' > /workspace/.vscode/settings.json
42+
43+

0 commit comments

Comments
 (0)