1 | # --- 🐳 Cypress CI Dockerfile ---
|
2 | # Extend the cypress/included base image with tools used in addition to Cypress
|
3 |
|
4 | FROM cypress/included:3.8.3
|
5 |
|
6 | # Install any packages used in Cypress test files
|
7 | RUN npm install @percy/cypress
|
8 |
|
9 | # Reset the `cypress run` entrypoint set by the `cypress/included` image
|
10 | ENTRYPOINT []
|
11 | # Wrap Cypress call with Percy for snapshot testing
|
12 | CMD [ "npx", "percy", "exec", "--", "cypress", "run"]
|