2024-01-18 15:53:37 +08:00
|
|
|
FROM node:20-bullseye
|
2023-10-17 19:41:42 +08:00
|
|
|
|
2023-10-22 16:59:04 +08:00
|
|
|
WORKDIR /app/tianji
|
2023-10-17 19:41:42 +08:00
|
|
|
|
|
|
|
RUN npm install -g pnpm@8.3.1
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-01-13 18:16:09 +08:00
|
|
|
# Push client(only support pure text message)
|
2024-01-15 02:47:03 +08:00
|
|
|
RUN apt update && apt -y install apprise
|
2024-01-13 18:16:09 +08:00
|
|
|
|
2023-10-17 19:41:42 +08:00
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
|
|
|
|
RUN pnpm build
|
|
|
|
|
2024-01-15 00:22:43 +08:00
|
|
|
# remove unused source file
|
2023-11-07 16:56:16 +08:00
|
|
|
RUN rm -rf ./src
|
|
|
|
RUN rm -rf ./website
|
|
|
|
RUN rm -rf ./reporter
|
|
|
|
|
2023-10-17 19:41:42 +08:00
|
|
|
EXPOSE 12345
|
|
|
|
|
2023-10-19 00:24:53 +08:00
|
|
|
CMD ["pnpm", "start:docker"]
|