-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.base
More file actions
31 lines (25 loc) · 849 Bytes
/
Copy pathDockerfile.base
File metadata and controls
31 lines (25 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM node:22-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates git tmux python3 \
# Playwright / Chromium dependencies for browser-use (Stagehand)
libnss3 libatk-bridge2.0-0 libdrm2 libxcomposite1 \
libxdamage1 libxrandr2 libgbm1 libpango-1.0-0 \
libasound2 libcups2 libxkbcommon0 libgtk-3-0 \
fonts-liberation xdg-utils \
xvfb xdotool fluxbox scrot && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json ./
RUN npm install --legacy-peer-deps
# Install Playwright Chromium for browser-use (Stagehand)
RUN npx playwright install chromium
# Copy source and compile
COPY tsconfig.json ./
COPY *.ts ./
COPY src/ ./src/
COPY scripts/ ./scripts/
RUN npx tsc
# Ensure output directories exist
RUN mkdir -p /logs /app/output