TOPVERSE_Official/Dockerfile

21 lines
277 B
Docker
Raw Normal View History

2023-05-16 22:18:37 +08:00
FROM node:lts-alpine3.17
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
2023-05-16 22:18:37 +08:00
# RUN yarn config set registry https://registry.npm.taobao.org
# RUN npm install -g yarn
RUN yarn
RUN yarn build
RUN rm -rf node_module
2023-05-16 16:51:05 +08:00
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 22:18:37 +08:00
CMD ["yarn", "start"]