tianji/Dockerfile

22 lines
298 B
Docker
Raw Normal View History

2023-10-17 11:41:42 +00:00
FROM node:lts-alpine
WORKDIR /app/tianji
2023-10-17 11:41:42 +00:00
RUN npm install -g pnpm@8.3.1
COPY . .
2024-01-09 16:05:09 +00:00
RUN apk add --update --no-cache python3 g++ make py3-pip
2023-10-17 11:41:42 +00:00
RUN pnpm install --frozen-lockfile
RUN pnpm build
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"]