Skip to content

Commit 6e593c8

Browse files
committed
Revert prior changes and set to use alternate folder for chromium instance
1 parent 36d43cd commit 6e593c8

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.puppeteerrc.cjs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const {join} = require('path');
2+
3+
/**
4+
* @type {import("puppeteer").Configuration}
5+
*/
6+
module.exports = {
7+
// Changes the cache location for Puppeteer.
8+
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
9+
};

Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ ENV NODE_ENV=production
55
# Set working directory
66
WORKDIR /app
77

8-
RUN apt-get update && apt-get -y install libgbm1 && apt-get -y install libasound2
9-
108
# Install dependencies
119
COPY package.json package-lock.json ./
1210
RUN npm ci --omit=dev

entrypoint.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
#!/bin/sh
2-
node node_modules/puppeteer/install.js
3-
42
node deploy-commands.js
53
node index.js

0 commit comments

Comments
 (0)