TOPVERSE_Official/Dockerfile

21 lines
277 B
Docker

FROM node:lts-alpine3.17
RUN mkdir -p /web
COPY . /web
WORKDIR /web
# 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
ENV HOST 0.0.0.0
ENV PORT 3000
EXPOSE 3000
CMD ["yarn", "start"]