fix dockerfile. try using mcr docker image for playwright again
This commit is contained in:
@@ -19,11 +19,10 @@ steps:
|
||||
- event: pull_request
|
||||
|
||||
- name: e2e
|
||||
image: node:24-slim
|
||||
image: mcr.microsoft.com/playwright:v1.58.2-noble
|
||||
depends_on: []
|
||||
commands:
|
||||
- npm ci
|
||||
- npx playwright install --with-deps
|
||||
- npm run test:e2e
|
||||
environment:
|
||||
CI: "true"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Build stage
|
||||
FROM node:22-alpine AS builder
|
||||
FROM node:24-slim AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -10,7 +9,7 @@ COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Run stage
|
||||
FROM node:22-alpine AS runner
|
||||
FROM node:24-slim AS runner
|
||||
|
||||
# Run as non-root user (node user exists in official image)
|
||||
USER node
|
||||
|
||||
Reference in New Issue
Block a user