Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martindevnow/6294e9a3b85cbd50af111344ede71dba to your computer and use it in GitHub Desktop.
Save martindevnow/6294e9a3b85cbd50af111344ede71dba to your computer and use it in GitHub Desktop.
FROM cypress/base:8 as e2eBuild
# Copy NPM & Install
COPY ./cypress/package.json /tmp/package.json
RUN cd /tmp && CI=true npm install
RUN CI=true /tmp/node_modules/.bin/cypress install
RUN mkdir -p /e2e && cp -a /tmp/node_modules /e2e/
WORKDIR /e2e
# Copy files for config
COPY ./cypress/cypress.json /e2e
# Run tests
CMD ["./node_modules/.bin/cypress", "run" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment