-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.fleet
More file actions
55 lines (46 loc) · 1.25 KB
/
Dockerfile.fleet
File metadata and controls
55 lines (46 loc) · 1.25 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM python:3.12-slim
WORKDIR /app
# Install system dependencies for Chromium and Browser-Use
RUN apt-get update && apt-get install -y \
curl \
unzip \
wget \
git \
build-essential \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 \
libpangocairo-1.0-0 \
libpango-1.0-0 \
libgtk-3-0 \
libxss1 \
libxshmfence1 \
libmagic1 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs
# && apt-get clean && rm -rf /var/lib/apt/lists/*
RUN node -v && npm -v
RUN npm i -g nodemon
# Install uv (Python environment manager), Browser-Use system-wide,
# Chromium for Browser-Use and set PATH to make uvx available
RUN pip install --no-cache-dir uv==0.9.9
RUN uv pip install --system --no-cache-dir browser-use==0.9.5
RUN uvx browser-use install
ENV PATH="/root/.local/bin:$PATH"
WORKDIR /opt/app/
COPY requirements_fleet.txt ./
RUN pip install -r requirements_fleet.txt
COPY setup.py ./
RUN pip install .
COPY src/*.py ./src/
COPY README.md ./
COPY ./input/ ./input/
CMD ["nodemon", "--exec", "python", "src/fleet.py"]