# --- 🐳 Cypress CI Dockerfile ---
# Extend the cypress/included base image with tools used in addition to Cypress

FROM cypress/included:7.4.0

# Install any packages used in Cypress test files
RUN npm install @percy/cypress@2.3.4

# Reset the `cypress run` entrypoint set by the `cypress/included` image
ENTRYPOINT []
# Wrap Cypress call with Percy for snapshot testing
CMD [ "npx", "percy", "exec", "--", "cypress", "run"]
