From caad780e9a5d77b83bbd1822ced5cd88f93b1dcf Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 19 Jan 2024 00:33:10 +0800 Subject: [PATCH] chore: update docker file, move to 20-alpine --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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