chore: update docker file, move to 20-alpine
This commit is contained in:
parent
9b0db9e444
commit
caad780e9a
@ -1,4 +1,4 @@
|
|||||||
FROM node:20-bullseye
|
FROM node:20-alpine
|
||||||
|
|
||||||
WORKDIR /app/tianji
|
WORKDIR /app/tianji
|
||||||
|
|
||||||
@ -6,13 +6,16 @@ RUN npm install -g pnpm@8.3.1
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Push client(only support pure text message)
|
RUN apk add --update --no-cache python3 g++ make py3-pip
|
||||||
RUN apt update && apt -y install apprise
|
|
||||||
|
|
||||||
RUN pnpm install --frozen-lockfile
|
RUN pnpm install --frozen-lockfile
|
||||||
|
|
||||||
RUN pnpm build
|
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
|
# remove unused source file
|
||||||
RUN rm -rf ./src
|
RUN rm -rf ./src
|
||||||
RUN rm -rf ./website
|
RUN rm -rf ./website
|
||||||
|
Loading…
Reference in New Issue
Block a user