Skip to content

Commit

Permalink
ci(browser): fix package install command
Browse files Browse the repository at this point in the history
  • Loading branch information
yousif-bugsnag committed Sep 30, 2024
1 parent a924633 commit bbceeb7
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions dockerfiles/Dockerfile.browser
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconf
ADD min_packages.tar .
COPY bin ./bin
COPY packages ./packages
RUN find ./packages -print

RUN npm install --legacy-peer-deps
RUN npm run build
Expand All @@ -24,13 +23,13 @@ RUN npm pack --verbose packages/plugin-vue/
RUN npm pack --verbose packages/web-worker/

COPY test/browser/features test/browser/features

WORKDIR /app/test/browser/features/fixtures
RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-browser-*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-plugin-react-*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-plugin-vue-*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-web-worker-*.tgz
RUN find ./node_modules -print
RUN npm install --no-package-lock --no-save --legacy-peer-deps \
../../../../bugsnag-browser-*.tgz \
../../../../bugsnag-plugin-react-*.tgz \
../../../../bugsnag-plugin-vue-*.tgz \
../../../../bugsnag-web-worker-*.tgz

WORKDIR plugin_angular/ng
RUN npm install --no-package-lock --no-save --legacy-peer-deps \
../../../../../../bugsnag-plugin-angular-*.tgz \
Expand All @@ -45,7 +44,7 @@ RUN find . -name package.json -type f -mindepth 2 -maxdepth 3 ! -path "./node_mo

# once the fixtures are built we no longer need node_modules and
# it makes the COPY later on much faster if we don't have them
# RUN rm -fr **/*/node_modules/
RUN rm -fr **/*/node_modules/

# The maze-runner browser tests (W3C protocol)
FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v9-cli as browser-maze-runner
Expand Down

0 comments on commit bbceeb7

Please sign in to comment.