Skip to content

Commit c5fae01

Browse files
committed
Flytter puppeteer config til root
1 parent 901fa28 commit c5fae01

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

.github/workflows/legacy-archive-deploy.yml

-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ 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
3633
- name: Build application
3734
run: npm run build
3835
working-directory: legacy-archive

Dockerfile_legacy

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ RUN apt-get --assume-yes --no-install-recommends install chromium && apt-get cle
66
WORKDIR /app/legacy-archive/server
77

88
ENV NODE_ENV=production
9-
ENV PUPPETEER_CACHE_DIR=/tmp/.puppeteer-cache
9+
ENV PUPPETEER_CACHE_DIR=/app/.puppeteer-cache
1010
ENV PUPPETEER_TMP_DIR=/tmp/.puppeteer
1111
ENV XDG_CONFIG_HOME=/tmp/.chromium
1212
ENV XDG_CACHE_HOME=/tmp/.chromium
1313

1414
COPY node_modules /app/node_modules/
15-
COPY legacy-archive/.cache/puppeteer /tmp/.puppeteer-cache/
15+
COPY .cache/puppeteer /app/.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

File renamed without changes.

0 commit comments

Comments
 (0)