Files
crawlmanager/Dockerfile
T
chpark 6cd3bc218f feat: Puppeteer 헤드리스 브라우저 크롤링 지원
- JS 렌더링 대기 (wait ms 설정)
- 로그인 자동화 (아이디/비번 입력 → 버튼 클릭)
- 비주얼 매퍼에 JS렌더링 체크박스 + 로그인 설정 UI
- Dockerfile에 Chromium 설치
- parse_rules.browser=true 시 Puppeteer 사용
2026-03-31 11:43:27 +09:00

20 lines
394 B
Docker

FROM node:20-alpine
# Puppeteer용 Chromium 설치
RUN apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont
# Puppeteer 환경변수
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm install --production
COPY . .
EXPOSE 3000
CMD ["node", "src/app.js"]