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