Skip to content

Commit e9b54f8

Browse files
committed
Setter PUPPETEER_CACHE_DIR ved deploy til nais
1 parent 13abdf5 commit e9b54f8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/build-and-deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
run: npm ci
3333
env:
3434
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
35+
PUPPETEER_CACHE_DIR: '/tmp'
3536
- name: Build application
3637
run: npm run build
3738
- name: Build and push docker image

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ FROM node:20-alpine
33
WORKDIR /app
44

55
ENV NODE_ENV=production
6+
ENV PUPPETEER_CACHE_DIR=/tmp
67

78
COPY package*.json .env /app/
89
COPY node_modules /app/node_modules/
910
COPY server/dist /app/server/dist/
1011
COPY server/package*.json /app/server/
1112
COPY server/node_modules /app/server/node_modules/
13+
COPY tmp/puppeteer /tmp/puppeteer/
1214

1315
EXPOSE 3399
1416
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)