Skip to content

Commit 434f7cb

Browse files
author
marwan37
committed
generate updated Dockerfile.sandbox for omnireader
1 parent b1ebc93 commit 434f7cb

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

omni-reader/Dockerfile.sandbox

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ FROM zenmldocker/zenml-sandbox:latest
55
LABEL project_name="omni-reader"
66
LABEL project_version="0.1.0"
77

8-
# Install project-specific dependencies
9-
RUN pip install --no-cache-dir \
8+
# Install dependencies
9+
RUN pip install uv
10+
RUN uv pip install --system \
1011
"instructor" \
1112
"jiwer" \
1213
"jiter" \
@@ -32,16 +33,11 @@ RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenm
3233
cp -r /tmp/zenml-projects/omni-reader/* /workspace/ && \
3334
rm -rf /tmp/zenml-projects
3435

35-
# Create a template .env file for API keys
36-
RUN echo "OPENAI_API_KEY=YOUR_OPENAI_API_KEY" && \
37-
echo "MISTRAL_API_KEY=YOUR_MISTRAL_API_KEY" > .env
38-
39-
# Create a .vscode directory and settings.json file
36+
# VSCode settings
4037
RUN mkdir -p /workspace/.vscode && \
41-
echo '{\n'\
42-
' "workbench.colorTheme": "Default Dark Modern"\n'\
43-
'}' > /workspace/.vscode/settings.json
38+
printf '{\n "workbench.colorTheme": "Default Dark Modern"\n}' > /workspace/.vscode/settings.json
4439

45-
46-
# Set environment variables for compatibility and performance
47-
ENV POLARS_SKIP_CPU_CHECK=1
40+
# Create a template .env file for API keys
41+
RUN echo "MISTRAL_API_KEY=YOUR_MISTRAL_API_KEY" >> /workspace/.env
42+
RUN echo "OLLAMA_HOST=YOUR_OLLAMA_HOST" >> /workspace/.env
43+
RUN echo "OPENAI_API_KEY=YOUR_OPENAI_API_KEY" >> /workspace/.env

0 commit comments

Comments
 (0)