Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
ackava committed Jun 27, 2023
1 parent 2b91549 commit 193d850
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 193d850

Please sign in to comment.