chore: add build dependency for build zeromq
This commit is contained in:
parent
9f7fbafcf0
commit
79b75f55e3
24
Dockerfile
24
Dockerfile
@ -12,8 +12,23 @@ RUN cd reporter && go build .
|
|||||||
FROM node:20-alpine3.19 AS base
|
FROM node:20-alpine3.19 AS base
|
||||||
|
|
||||||
RUN npm install -g pnpm@9.7.1
|
RUN npm install -g pnpm@9.7.1
|
||||||
|
|
||||||
|
# For apprise
|
||||||
RUN apk add --update --no-cache python3 py3-pip g++ make
|
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 ------------------------------
|
# Tianji frontend ------------------------------
|
||||||
FROM base AS static
|
FROM base AS static
|
||||||
WORKDIR /app/tianji
|
WORKDIR /app/tianji
|
||||||
@ -38,15 +53,6 @@ ENV PUPPETEER_SKIP_DOWNLOAD=true
|
|||||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
||||||
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
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 . .
|
COPY . .
|
||||||
|
|
||||||
RUN pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false
|
RUN pnpm install --filter @tianji/server... --config.dedupe-peer-dependents=false
|
||||||
|
Loading…
Reference in New Issue
Block a user