-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (41 loc) · 991 Bytes
/
Copy pathDockerfile
File metadata and controls
51 lines (41 loc) · 991 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM oven/bun:debian
WORKDIR /app
# Install native dependencies required by Camoufox / Firefox engine
RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
curl \
python3 \
build-essential \
libgtk-3-0 \
libasound2 \
libx11-xcb1 \
libdbus-glib-1-2 \
libxt6 \
libxcomposite1 \
libxdamage1 \
libxfixes3 \
libxrandr2 \
libgbm1 \
libpango-1.0-0 \
libglib2.0-0 \
ca-certificates \
fonts-liberation \
xvfb \
xauth \
&& rm -rf /var/lib/apt/lists/*
# Copy package manifests
COPY package.json tsconfig.json ./
# Install server dependencies
RUN bun install --ignore-scripts
# Fetch Camoufox browser binaries for Linux
RUN bun x camoufox-js fetch
# Copy pre-built Web Dashboard SPA
COPY dashboard/dist/ ./dashboard/dist/
# Copy server source code
COPY src/ ./src/
EXPOSE 9223 8240
ENV HOST=0.0.0.0
ENV PORT=9223
ENV HTTP_PORT=8240
ENV HEADLESS=virtual
CMD ["bun", "run", "src/server.ts"]