File size: 441 Bytes
097fb32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# stealth-proxy Dockerfile
# 基于 Debian slim,安装 Chromium 及其依赖
FROM node:22-slim

WORKDIR /app

# 安装 npm 依赖
COPY package.json ./
RUN npm install --omit=dev

# 安装 Playwright Chromium 及系统依赖(字体、图形库等)
RUN npx playwright install --with-deps chromium

COPY index.js ./

# 非 root 用户运行(Chromium 需要 --no-sandbox)
ENV NODE_ENV=production

EXPOSE 3011

CMD ["node", "index.js"]