tianji/Dockerfile

26 lines
421 B
Docker
Raw Normal View History

2023-10-17 19:41:42 +08:00
FROM node:lts-alpine
WORKDIR /app/tianji
2023-10-17 19:41:42 +08:00
RUN npm install -g pnpm@8.3.1
COPY . .
2024-01-09 11:05:09 -05:00
RUN apk add --update --no-cache python3 g++ make py3-pip
2024-01-13 18:16:09 +08:00
# Push client(only support pure text message)
RUN pip install apprise --break-system-packages
2024-01-13 18:16:09 +08:00
2023-10-17 19:41:42 +08:00
RUN pnpm install --frozen-lockfile
RUN pnpm build
# remove unused source file
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"]