FROM node:22-alpine # Upgrade OS packages to fix upstream vulnerabilities (Snyk-detected) RUN apk update && apk upgrade && \ apk add --no-cache ca-certificates zlib>=1.3.2-r0 --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main # Set working directory WORKDIR /app # Copy the generator source code COPY . . # Install generator dependencies RUN npm install # Create the temp directory for workspace RUN mkdir -p temp_test_workspace # Set environment variable to skip Docker-in-Docker check ENV SKIP_DOCKER=true # Run the validation script # This will: # 1. Generate all 32 project combinations using the CLI (on Linux) # 2. Run 'npm install' in each generated project (on Linux) # 3. Run 'npm run lint' in each project (validating path helpers/casing) # 4. Run 'npm test' (unit tests) in each project CMD ["npm", "run", "test:e2e:linux"]