fix(playwright): use playwright docker image due to runtime error

This commit is contained in:
Amruth Pillai
2022-03-07 23:09:14 +01:00
parent 28ba2b1b8f
commit 2696a54d17
3 changed files with 28 additions and 11 deletions

View File

@ -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 .