chore: update docker file, move to 20-alpine

This commit is contained in:
moonrailgun 2024-01-19 00:33:10 +08:00
parent 9b0db9e444
commit caad780e9a

View File

@ -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