From 79b75f55e39c057c330bc1fb0b3b15dc10e28a78 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Wed, 2 Oct 2024 17:32:57 +0800 Subject: [PATCH] chore: add build dependency for build zeromq --- Dockerfile | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2594f2b..829ee00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,23 @@ RUN cd reporter && go build . FROM node:20-alpine3.19 AS base RUN npm install -g pnpm@9.7.1 + +# For apprise RUN apk add --update --no-cache python3 py3-pip g++ make +# For puppeteer +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 + +# For zeromq +RUN apk add --update --no-cache curl cmake + # Tianji frontend ------------------------------ FROM base AS static WORKDIR /app/tianji @@ -38,15 +53,6 @@ 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