Created
August 3, 2020 17:26
-
-
Save alfredlucero/8e20c989ab049a2039c4437aabf3e271 to your computer and use it in GitHub Desktop.
Cypress Tips/Tricks - Cypress Dockerfile
This file contains 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
# Dockerfile | |
# Use Cypress's base image to help set up the environment/dependencies | |
FROM cypress/base:12.6.0 | |
# This helps to clean up the console output | |
ENV CI=1 | |
# Proceed with installing Node dependencies | |
RUN mkdir -p /opt/frontendapp/ | |
WORKDIR /opt/frontendapp/ | |
COPY package.json /opt/frontendapp/ | |
COPY package-lock.json /opt/frontendapp/ | |
RUN npm ci | |
# Copy over application code and installed node_modules | |
COPY . /opt/frontendapp | |
WORKDIR /opt/frontendapp | |
# Verify Cypress installation worked | |
RUN ./node_modules/.bin/cypress verify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment