Update Dockerfile
Browse files- Dockerfile +4 -9
Dockerfile
CHANGED
|
@@ -1,21 +1,16 @@
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
| 3 |
-
# Install system dependencies for high-level research and browsing
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
git curl nodejs npm ffmpeg libsm6 libxext6 r-base \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
-
|
| 10 |
-
# Copy files and install Python stack
|
| 11 |
COPY . .
|
| 12 |
-
RUN pip install --no-cache-dir \
|
| 13 |
-
smolagents e2b-code-interpreter \
|
| 14 |
-
chromadb playwright pandas scipy torch \
|
| 15 |
-
gradio huggingface_hub
|
| 16 |
|
| 17 |
-
# Install
|
|
|
|
|
|
|
|
|
|
| 18 |
RUN playwright install-deps && playwright install chromium
|
| 19 |
|
| 20 |
-
# Command to run the operator
|
| 21 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.11-slim
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
git curl nodejs npm ffmpeg libsm6 libxext6 r-base \
|
| 5 |
&& rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
WORKDIR /app
|
|
|
|
|
|
|
| 8 |
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
+
# Install Python stack from requirements
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# Crucial for agents that need to "see" or "browse"
|
| 14 |
RUN playwright install-deps && playwright install chromium
|
| 15 |
|
|
|
|
| 16 |
CMD ["python", "app.py"]
|