add Google News integration and enhance crawler capabilities
This commit is contained in:
parent
c3f9e59c5e
commit
1a615fb91d
1 changed files with 24 additions and 0 deletions
24
Dockerfile
24
Dockerfile
|
|
@ -1,11 +1,35 @@
|
|||
FROM node:22-bookworm-slim
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
chromium \
|
||||
fonts-liberation \
|
||||
libasound2 \
|
||||
libatk-bridge2.0-0 \
|
||||
libatk1.0-0 \
|
||||
libcups2 \
|
||||
libdbus-1-3 \
|
||||
libdrm2 \
|
||||
libgbm1 \
|
||||
libgtk-3-0 \
|
||||
libnspr4 \
|
||||
libnss3 \
|
||||
libx11-xcb1 \
|
||||
libxcomposite1 \
|
||||
libxdamage1 \
|
||||
libxfixes3 \
|
||||
libxrandr2 \
|
||||
libxshmfence1 \
|
||||
xdg-utils \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev \
|
||||
&& npx playwright install chromium \
|
||||
&& npm cache clean --force \
|
||||
&& mkdir -p /data \
|
||||
&& ln -s /data/archive.sqlite /app/archive.sqlite
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue