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