diff --git a/Dockerfile b/Dockerfile index b596af9..ecf5d24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-bullseye +FROM node:20-alpine WORKDIR /app/tianji @@ -6,13 +6,16 @@ RUN npm install -g pnpm@8.3.1 COPY . . -# Push client(only support pure text message) -RUN apt update && apt -y install apprise +RUN apk add --update --no-cache python3 g++ make py3-pip RUN pnpm install --frozen-lockfile RUN pnpm build +# make sure run after pnpm build completed +# Push client(only support pure text message) +RUN pip install apprise --break-system-packages + # remove unused source file RUN rm -rf ./src RUN rm -rf ./website