Skip to content

Commit 901fa28

Browse files
committed
Installerer fra legacy-archive
1 parent b7ce99b commit 901fa28

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Diff for: .github/workflows/legacy-archive-deploy.yml

+3
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
run: npm ci --include-workspace-root --workspace=common --workspace=legacy-archive
3131
env:
3232
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
33+
- name: Install Puppeteer
34+
run: npx puppeteer browsers install chrome
35+
working-directory: legacy-archive
3336
- name: Build application
3437
run: npm run build
3538
working-directory: legacy-archive

Diff for: Dockerfile_legacy

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ FROM node:22-bookworm-slim
22

33
RUN apt-get update
44
RUN apt-get --assume-yes --no-install-recommends install chromium && apt-get clean
5-
RUN npx puppeteer browsers install chrome
65

76
WORKDIR /app/legacy-archive/server
87

98
ENV NODE_ENV=production
10-
ENV PUPPETEER_CACHE_DIR=.cache/puppeteer
9+
ENV PUPPETEER_CACHE_DIR=/tmp/.puppeteer-cache
1110
ENV PUPPETEER_TMP_DIR=/tmp/.puppeteer
1211
ENV XDG_CONFIG_HOME=/tmp/.chromium
1312
ENV XDG_CACHE_HOME=/tmp/.chromium
1413

1514
COPY node_modules /app/node_modules/
15+
COPY legacy-archive/.cache/puppeteer /tmp/.puppeteer-cache/
1616
COPY legacy-archive/server/dist /app/legacy-archive/server/dist/
1717
COPY legacy-archive/server/package.json /app/legacy-archive/server/
1818

0 commit comments

Comments
 (0)