A memo that explored various ways to build an environment because I wanted to run Cypress on Docker and perform E2E tests.
e2e
├ cypress - integration - sample_spec.js
└ cypress.json
  docker-compose.yml
  Dockerfile
Dockerfile
FROM cypress/base:10
RUN npm install --save-dev cypress
RUN npx cypress verify
docker-compose.yml
version: '3'
services:
  e2e:
    container_name: cypress
    build: .
    command: >
      bash -c "cd cypress &&
        npx cypress run -s cypress/integration/sample_spec.js"
    volumes:
      - ./:/cypress
cypress.json
{
    "video": false
}
docker-comopse build
docker-comopse up
I tried various things, but it wasn't very good. .. .. After all it is important to see the official website properly.