Created
July 23, 2024 06:02
-
-
Save badgeek/ce9f769bfb59bf90b43ee0d525b86727 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM cypress/browsers | |
| # Set the working directory | |
| WORKDIR /opt/app | |
| # Copy package.json and package-lock.json (if available) | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm ci | |
| # Install Cypress binary | |
| RUN npx cypress install | |
| # Copy the Cypress configuration file (if exists) | |
| COPY cypress.json . | |
| # Copy the Cypress test files | |
| COPY cypress ./cypress |
Author
Author
yarn install --frozen-lockfile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker build . -f Dockerfile.browsers -t test-browsers
docker run -it --rm test-browsers npx cypress run -b chrome