File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 30
30
run : npm ci --include-workspace-root --workspace=common --workspace=legacy-archive
31
31
env :
32
32
NODE_AUTH_TOKEN : ${{ secrets.READER_TOKEN }}
33
+ - name : Install Puppeteer
34
+ run : npx puppeteer browsers install chrome
35
+ working-directory : legacy-archive
33
36
- name : Build application
34
37
run : npm run build
35
38
working-directory : legacy-archive
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ FROM node:22-bookworm-slim
2
2
3
3
RUN apt-get update
4
4
RUN apt-get --assume-yes --no-install-recommends install chromium && apt-get clean
5
- RUN npx puppeteer browsers install chrome
6
5
7
6
WORKDIR /app/legacy-archive/server
8
7
9
8
ENV NODE_ENV=production
10
- ENV PUPPETEER_CACHE_DIR=.cache/ puppeteer
9
+ ENV PUPPETEER_CACHE_DIR=/tmp/. puppeteer-cache
11
10
ENV PUPPETEER_TMP_DIR=/tmp/.puppeteer
12
11
ENV XDG_CONFIG_HOME=/tmp/.chromium
13
12
ENV XDG_CACHE_HOME=/tmp/.chromium
14
13
15
14
COPY node_modules /app/node_modules/
15
+ COPY legacy-archive/.cache/puppeteer /tmp/.puppeteer-cache/
16
16
COPY legacy-archive/server/dist /app/legacy-archive/server/dist/
17
17
COPY legacy-archive/server/package.json /app/legacy-archive/server/
18
18
You can’t perform that action at this time.
0 commit comments