Skip to content
yhAutomationQA edited this page May 16, 2026 · 1 revision

Docker

Run tests with no local Node.js or Cypress binary needed.

Build

npm run docker:build

Run Tests

npm run docker:test          # All tests (dev)
npm run docker:test:qa       # QA environment
npm run docker:test:staging  # Staging
npm run docker:smoke         # @smoke tag
npm run docker:regression    # @regression tag
npm run docker:api           # @api tag
npm run docker:bash          # Interactive shell

Architecture

Multi-stage Dockerfile using cypress/base:20:

Stage Content
base Node 20 + system deps
dependencies npm ci + cypress verify (cached)
production Source code + report dirs

Six volume mounts for report persistence. Optimizations: CI=1, ipc: host, init: true, .dockerignore excludes 90% of build context.

Clone this wiki locally