1 Star 1 Fork 0

jianxuanlu / vue-next-typescript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 418 Bytes
一键复制 编辑 原始数据 按行查看 历史
jianxuanlu 提交于 2022-06-02 12:25 . save
FROM node:14 as builder
# ENV PROJECT_ENV production
# ENV NODE_ENV production
WORKDIR /code
ADD package.json /code
RUN npm config set registry https://r.npm.taobao.org/
RUN npm get registry
RUN npm install
ADD . /code
RUN npm run build
# 选择更小体积的基础镜像
FROM nginx:alpine
COPY --from=builder /code/dist /usr/share/nginx/html
COPY --from=builder /code/nginx.conf /etc/nginx/conf.d/aListen80.conf
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jianxuanlu/vue-next-typescript.git
git@gitee.com:jianxuanlu/vue-next-typescript.git
jianxuanlu
vue-next-typescript
vue-next-typescript
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891