Skip to content

Instantly share code, notes, and snippets.

@badgeek
Created July 23, 2024 06:02
Show Gist options
  • Save badgeek/ce9f769bfb59bf90b43ee0d525b86727 to your computer and use it in GitHub Desktop.
Save badgeek/ce9f769bfb59bf90b43ee0d525b86727 to your computer and use it in GitHub Desktop.

Revisions

  1. badgeek created this gist Jul 23, 2024.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    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