30 lines
677 B
Docker
30 lines
677 B
Docker
FROM node:20-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Системные зависимости для Chromium (Playwright)
|
|
RUN apt-get update && apt-get install -y \
|
|
libnss3 \
|
|
libnspr4 \
|
|
libatk1.0-0 \
|
|
libatk-bridge2.0-0 \
|
|
libcups2 \
|
|
libdrm2 \
|
|
libdbus-1-3 \
|
|
libxkbcommon0 \
|
|
libxcomposite1 \
|
|
libxdamage1 \
|
|
libxfixes3 \
|
|
libxrandr2 \
|
|
libgbm1 \
|
|
libpango-1.0-0 \
|
|
libcairo2 \
|
|
libasound2 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN git clone https://git.dadehard.ru/kalugin66/parse_link_vpn.git .
|
|
RUN npm install && npx playwright install chromium && npx playwright install-deps chromium
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
CMD ["./entrypoint.sh"]
|