Fixes for inline css (CSSOM)
This commit is contained in:
34
Dockerfile
34
Dockerfile
@@ -1,23 +1,27 @@
|
||||
FROM mcr.microsoft.com/playwright:v1.60.0
|
||||
FROM mcr.microsoft.com/playwright:v1.60.0-noble
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install Node 22+ if not present (Playwright image may have an older Node)
|
||||
RUN apt-get update && apt-get install -y curl && \
|
||||
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
|
||||
apt-get install -y nodejs && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npx playwright install chromium
|
||||
|
||||
# Default to headless; override with --env HEADFUL=1 and mount X11 socket or use VNC
|
||||
ENV NODE_ENV=production
|
||||
ENV ARCHIVE_PATH=/archives
|
||||
ENV DISPLAY=:99
|
||||
ENV ARCHIVE_WORKER_XVFB=1
|
||||
ENV ARCHIVE_WORKER_VIEWPORT=1366x768x24
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
dumb-init \
|
||||
x11vnc \
|
||||
xvfb && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --omit=dev
|
||||
|
||||
COPY . .
|
||||
RUN mkdir -p /archives && chmod 0777 /archives
|
||||
|
||||
VOLUME ["/archives"]
|
||||
|
||||
ENTRYPOINT ["node", "src/cli.mjs"]
|
||||
ENTRYPOINT ["dumb-init", "--", "/app/scripts/archive-worker-entrypoint.sh"]
|
||||
CMD ["help"]
|
||||
|
||||
Reference in New Issue
Block a user