TOPVERSE_Official/Dockerfile

21 lines
255 B
Docker
Raw Normal View History

2023-05-16 17:20:43 +08:00
FROM node:18-bullseye
2023-05-16 16:51:05 +08:00
2023-05-16 17:20:43 +08:00
RUN mkdir -p /web
2023-05-16 16:51:05 +08:00
2023-05-16 17:20:43 +08:00
COPY . /web
WORKDIR /web
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install -g pnpm
RUN pnpm install
2023-05-16 16:51:05 +08:00
RUN pnpm build
2023-05-16 17:20:43 +08:00
ENV HOST 0.0.0.0
ENV PORT 3000
2023-05-16 16:51:05 +08:00
2023-05-16 17:20:43 +08:00
EXPOSE 3000
2023-05-16 16:51:05 +08:00
2023-05-16 17:20:43 +08:00
CMD ["pnpm", "start"]