File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 with :
2626 node-version : ${{ matrix.node-version }}
2727 - run : npm ci
28+ - run : npm run build
2829 - run : npm run test
Original file line number Diff line number Diff line change 1- FROM alpine
1+ FROM node:22-bookworm-slim
22
3- RUN apk add --no-cache \
4- chromium \
5- nss \
6- freetype \
7- harfbuzz \
8- ca-certificates \
9- ttf-freefont \
10- nodejs \
11- npm
12-
13- ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
3+ ENV DEBIAN_FRONTEND=noninteractive
4+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
5+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
146ENV HTML2PDF_NO_SANDBOX=true
157
8+ RUN apt-get update && \
9+ apt-get install -y wget gnupg && \
10+ apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
11+ libgtk2.0-0 libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libgbm1 libasound2 && \
12+ apt-get install -y chromium && \
13+ apt-get clean
14+
1615WORKDIR /app
17- COPY ["package.json" , "./" ]
16+ EXPOSE 3000
17+
18+ COPY package.json .
19+ COPY package-lock.json .
1820RUN npm install
21+
1922COPY . .
20- CMD ["npm" , "start" ]
23+ RUN npm run clean
24+ RUN npm run build
25+
26+ CMD ["npm" , "run" , "start" ]
You can’t perform that action at this time.
0 commit comments