2024-01-18 16:33:10 +00:00
|
|
|
FROM node:20-alpine
|
2023-10-17 11:41:42 +00:00
|
|
|
|
2023-10-22 08:59:04 +00:00
|
|
|
WORKDIR /app/tianji
|
2023-10-17 11:41:42 +00:00
|
|
|
|
|
|
|
RUN npm install -g pnpm@8.3.1
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-01-18 18:40:32 +00:00
|
|
|
RUN apk add --update --no-cache python3 py3-pip g++ make
|
2024-01-13 10:16:09 +00:00
|
|
|
|
2023-10-17 11:41:42 +00:00
|
|
|
RUN pnpm install --frozen-lockfile
|
|
|
|
|
|
|
|
RUN pnpm build
|
|
|
|
|
2024-01-28 08:51:44 +00:00
|
|
|
# make sure run after pnpm build completed to avoid break system packages
|
2024-01-18 16:33:10 +00:00
|
|
|
# Push client(only support pure text message)
|
2024-01-20 08:22:44 +00:00
|
|
|
RUN pip install apprise --break-system-packages
|
2024-01-18 16:33:10 +00:00
|
|
|
|
2024-01-14 16:22:43 +00:00
|
|
|
# remove unused source file
|
2023-11-07 08:56:16 +00:00
|
|
|
RUN rm -rf ./src
|
|
|
|
RUN rm -rf ./website
|
|
|
|
RUN rm -rf ./reporter
|
|
|
|
|
2023-10-17 11:41:42 +00:00
|
|
|
EXPOSE 12345
|
|
|
|
|
2023-10-18 16:24:53 +00:00
|
|
|
CMD ["pnpm", "start:docker"]
|