FROM node:lts-alpine as build-stage WORKDIR /app COPY package.json ./ RUN yarn install COPY . . RUN yarn build #代理nginx,nginx直接访问 FROM nginx:stable-alpine as production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]
请将 vue 文件夹下 package.json 中 typescript 版本改成 如下:(不然会报错)
docker run -it --name abp_ng -d -p 8099:80 abp/ng:latest
docker exec -it abp_ng sh
讓眾人的薪枝構起這團熱情的火焰