Skip to content

Commit 8a69b32

Browse files
committed
Fikser cache dir
1 parent e9b54f8 commit 8a69b32

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

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

Dockerfile

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

55
ENV NODE_ENV=production
6-
ENV PUPPETEER_CACHE_DIR=/tmp
6+
ENV PUPPETEER_CACHE_DIR=/tmp/puppeteer
77

88
COPY package*.json .env /app/
99
COPY node_modules /app/node_modules/
1010
COPY server/dist /app/server/dist/
1111
COPY server/package*.json /app/server/
1212
COPY server/node_modules /app/server/node_modules/
13-
COPY tmp/puppeteer /tmp/puppeteer/
13+
COPY puppeteer /tmp/puppeteer/
1414

1515
EXPOSE 3399
1616
CMD ["npm", "run", "start"]

0 commit comments

Comments
 (0)