6cd3bc218f
- JS 렌더링 대기 (wait ms 설정) - 로그인 자동화 (아이디/비번 입력 → 버튼 클릭) - 비주얼 매퍼에 JS렌더링 체크박스 + 로그인 설정 UI - Dockerfile에 Chromium 설치 - parse_rules.browser=true 시 Puppeteer 사용
20 lines
394 B
Docker
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"]
|