From 051b3473b9bec79126edafc242ab43283a6303e9 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Mon, 30 Sep 2024 23:12:22 +0800 Subject: [PATCH] refactor: update dockerfile, carry back auto install dependency --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Dockerfile b/Dockerfile index a665cbb..2594f2b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,20 @@ RUN pnpm build:static FROM base AS app WORKDIR /app/tianji +# We don't need the standalone Chromium in alpine. +ENV PUPPETEER_SKIP_DOWNLOAD=true +ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true +ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser + +RUN apk upgrade --no-cache --available \ + && apk add --no-cache \ + chromium-swiftshader \ + ttf-freefont \ + font-noto-emoji \ + && apk add --no-cache \ + --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \ + font-wqy-zenhei + COPY . . RUN pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false