From 193d850fb64c65f22ca7e1b50725d6f87dc8a1ad Mon Sep 17 00:00:00 2001 From: Akash Kava <39438041+ackava@users.noreply.github.com> Date: Tue, 27 Jun 2023 14:28:33 +0530 Subject: [PATCH] undo --- .github/workflows/nodejs.yml | 6 ++++++ Dockerfile | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) 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"]