diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 1d01f5d..c57ef10 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -21,6 +21,12 @@ jobs: cache: 'npm' cache-dependency-path: package.json - run: npm ci + # puppeteer-screen-recorder installs puppeteer by default, so we need to delete both + - run: npm uninstall puppeteer puppeteer-screen-recorder + # this will create fresh install in puppeteer-chromium + - run: npm install puppeteer + - run: chmod -R +x puppeteer-chromium + - run: npm install puppeteer-screen-recorder # Moving puppeteer-chromium back to default cache folder - run: npm install -g typescript - run: tsc diff --git a/Dockerfile b/Dockerfile index b322990..9f50ab7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,14 +51,8 @@ COPY dist ${FUNCTION_DIR}/dist COPY package.json ${FUNCTION_DIR} COPY src ${FUNCTION_DIR}/src COPY index.js ${FUNCTION_DIR} -COPY puppeteer.config.cjs ${FUNCTION_DIR} COPY node_modules ${FUNCTION_DIR}/node_modules -RUN npm uninstall puppeteer puppeteer-screen-recorder -RUN npm install puppeteer -RUN chmod -R +x puppeteer-chromium -RUN npm install puppeteer-screen-recorder - WORKDIR ${FUNCTION_DIR} ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]