mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 08:42:08 +10:00
fix(playwright): use playwright docker image due to runtime error
This commit is contained in:
@ -27,16 +27,10 @@ COPY --from=dependencies /app/server/node_modules ./server/node_modules
|
||||
RUN pnpm run build:schema
|
||||
RUN pnpm run build:server
|
||||
|
||||
FROM ubuntu:focal as production
|
||||
FROM mcr.microsoft.com/playwright:focal as production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y curl g++ make \
|
||||
&& curl -sL https://deb.nodesource.com/setup_16.x | bash \
|
||||
&& apt-get install -y nodejs \
|
||||
&& PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npx playwright install-deps chromium
|
||||
|
||||
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm
|
||||
|
||||
COPY --from=builder /app/pnpm-*.yaml .
|
||||
|
||||
Reference in New Issue
Block a user