Refactor Dockerfile to use node:20 as base image and install playwright dependencies

This commit is contained in:
Jakob Kordež 2024-05-29 19:44:57 +02:00
parent e527c9febb
commit 42e25e58d2

View File

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/playwright:v1.38.1 AS build
FROM node:20 AS build
WORKDIR /app
@ -6,6 +6,9 @@ COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
# Install playwright dependencies
RUN yarn playwright install-deps
COPY . .
RUN yarn build