Spaces:
Paused
Paused
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
|
@@ -1,14 +1,21 @@
|
|
| 1 |
FROM python:3.13
|
| 2 |
|
| 3 |
-
# Install system dependencies for Playwright
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
|
| 6 |
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
|
| 7 |
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
|
| 8 |
libgbm1 libpango-1.0-0 libcairo2 libasound2 \
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/* \
|
| 10 |
&& git lfs install
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
COPY requirements.txt .
|
|
@@ -23,6 +30,10 @@ RUN pip install --no-cache-dir -r requirements.txt \
|
|
| 23 |
RUN playwright install chromium
|
| 24 |
RUN playwright install-deps chromium || true
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
COPY . .
|
| 27 |
|
| 28 |
EXPOSE 7860
|
|
|
|
| 1 |
FROM python:3.13
|
| 2 |
|
| 3 |
+
# Install system dependencies for Playwright + Node.js (for MCP servers)
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
|
| 6 |
libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 \
|
| 7 |
libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 \
|
| 8 |
libgbm1 libpango-1.0-0 libcairo2 libasound2 \
|
| 9 |
+
curl \
|
| 10 |
&& rm -rf /var/lib/apt/lists/* \
|
| 11 |
&& git lfs install
|
| 12 |
|
| 13 |
+
# Install Node.js 20.x (required for MCP servers — most are npm packages)
|
| 14 |
+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
| 15 |
+
&& apt-get install -y nodejs \
|
| 16 |
+
&& node --version \
|
| 17 |
+
&& npm --version
|
| 18 |
+
|
| 19 |
WORKDIR /app
|
| 20 |
|
| 21 |
COPY requirements.txt .
|
|
|
|
| 30 |
RUN playwright install chromium
|
| 31 |
RUN playwright install-deps chromium || true
|
| 32 |
|
| 33 |
+
# Pre-install popular MCP servers (cached for faster startup)
|
| 34 |
+
RUN npm install -g @anthropic/github-mcp 2>/dev/null || true
|
| 35 |
+
RUN npm install -g @anthropic/filesystem-mcp 2>/dev/null || true
|
| 36 |
+
|
| 37 |
COPY . .
|
| 38 |
|
| 39 |
EXPOSE 7860
|