File tree Expand file tree Collapse file tree 1 file changed +13
-32
lines changed
Expand file tree Collapse file tree 1 file changed +13
-32
lines changed Original file line number Diff line number Diff line change 11# cspell: disable
22
3- FROM node:22
4- # Install necessary dependencies for Puppeteer and Chromium
5- RUN apt-get update && apt-get install -y --no-install-recommends \
6- fonts-liberation \
7- libasound2 \
8- libatk-bridge2.0-0 \
9- libatk1.0-0 \
10- libcups2 \
11- libdrm2 \
12- libgbm1 \
13- libgtk-3-0 \
14- libnspr4 \
15- libnss3 \
16- libx11-xcb1 \
17- libxcomposite1 \
18- libxdamage1 \
19- libxrandr2 \
20- xdg-utils \
21- libu2f-udev \
22- libxshmfence1 \
23- libglu1-mesa \
24- chromium \
25- && apt-get clean \
26- && rm -rf /var/lib/apt/lists/*
27- RUN corepack enable && corepack prepare
[email protected] --activate
3+ FROM ghcr.io/puppeteer/puppeteer:22
4+
5+ USER root
6+
7+ # Add user so we don't need --no-sandbox.
8+ RUN mkdir -p /home/pptruser/Downloads /app \
9+ && chown -R pptruser:pptruser /home/pptruser \
10+ && chown -R pptruser:pptruser /app
11+
12+ # Run everything after as non-privileged user.
13+ USER pptruser
14+
2815WORKDIR /usr/src/app
29- COPY package.json pnpm-lock.yaml ./
30- RUN pnpm install --frozen-lockfile --no-optional
3116COPY . .
3217
33- # Puppeteer setup: Skip Chromium download and use the installed Chromium
34- ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
35- ENV PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium"
36-
37- ENTRYPOINT [ "node" , "/usr/src/app/bin/markdown-confluence-sync-action.js" ]
18+ ENTRYPOINT [ "/usr/local/bin/node" , "/usr/src/app/bin/markdown-confluence-sync-action.js" ]
You can’t perform that action at this time.
0 commit comments