|
1 | 1 | # Sandbox base image |
2 | | -FROM safoinext/zenml-sandbox:latest |
| 2 | +FROM zenmldocker/zenml-sandbox:latest |
| 3 | + |
| 4 | +# Project metadata |
| 5 | +LABEL project_name="omni-reader" |
| 6 | +LABEL project_version="0.1.0" |
3 | 7 |
|
4 | 8 | # Install project-specific dependencies |
5 | | -# Install polars-lts-cpu instead of polars (version compiled for CPU compatibility) |
6 | 9 | RUN pip install --no-cache-dir \ |
7 | | - "instructor==1.7.7" \ |
8 | | - "jiwer==3.0.5" \ |
9 | | - "jiter==0.8.2" \ |
| 10 | + "instructor" \ |
| 11 | + "jiwer" \ |
| 12 | + "jiter" \ |
10 | 13 | "importlib-metadata<7.0,>=1.4.0" \ |
11 | | - "litellm==1.64.1" \ |
| 14 | + "litellm" \ |
12 | 15 | "mistralai==1.0.3" \ |
13 | 16 | "numpy<2.0,>=1.9.0" \ |
14 | 17 | "openai==1.69.0" \ |
15 | 18 | "Pillow==11.1.0" \ |
16 | 19 | "polars-lts-cpu==1.26.0" \ |
17 | 20 | "pyarrow>=7.0.0" \ |
18 | | - "python-dotenv==1.0.1" \ |
| 21 | + "python-dotenv" \ |
19 | 22 | "streamlit==1.44.0" \ |
20 | 23 | "pydantic>=2.8.2,<2.9.0" \ |
21 | 24 | "tqdm==4.66.4" \ |
22 | | - "zenml>=0.80.0" \ |
23 | | - uv |
| 25 | + "zenml>=0.80.0" |
24 | 26 |
|
25 | 27 | # Set workspace directory |
26 | 28 | WORKDIR /workspace |
27 | 29 |
|
28 | | -# Clone only the omni-reader directory and reorganize |
| 30 | +# Clone only the project directory and reorganize |
29 | 31 | RUN git clone --depth 1 https://github.com/zenml-io/zenml-projects.git /tmp/zenml-projects && \ |
30 | 32 | cp -r /tmp/zenml-projects/omni-reader/* /workspace/ && \ |
31 | 33 | rm -rf /tmp/zenml-projects |
32 | 34 |
|
33 | 35 | # Create a template .env file for API keys |
34 | | -RUN echo "OPENAI_API_KEY=YOUR_OPENAI_API_KEY_HERE" > .env && \ |
35 | | - echo "MISTRAL_API_KEY=YOUR_MISTRAL_API_KEY_HERE" >> .env |
| 36 | +RUN echo "OPENAI_API_KEY=YOUR_OPENAI_API_KEY" && \ |
| 37 | + echo "MISTRAL_API_KEY=YOUR_MISTRAL_API_KEY" > .env |
36 | 38 |
|
37 | | -# Create a .vscode directory (mainly to auto-apply the dark theme) |
38 | | -RUN mkdir -p /workspace/.vscode |
39 | | -# Copy settings file |
40 | | -COPY settings.json /workspace/.vscode/settings.json |
| 39 | +# Create a .vscode directory and settings.json file |
| 40 | +RUN mkdir -p /workspace/.vscode && \ |
| 41 | + echo '{\n'\ |
| 42 | + ' "workbench.colorTheme": "Default Dark Modern"\n'\ |
| 43 | + '}' > /workspace/.vscode/settings.json |
41 | 44 |
|
42 | | -# Set environment variable to skip CPU checks for Polars as a fallback |
43 | | -ENV POLARS_SKIP_CPU_CHECK=1 |
44 | 45 |
|
| 46 | +# Set environment variables for compatibility and performance |
| 47 | +ENV POLARS_SKIP_CPU_CHECK=1 |
0 commit comments