Ai
2 Star 1 Fork 0

代币交易平台/vue_project

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 623 Bytes
一键复制 编辑 原始数据 按行查看 历史
robin 提交于 2019-01-15 21:20 +08:00 . add dockerfile
# We label our stage as 'builder'
FROM node:8-alpine as builder
RUN npm config set registry http://registry.npm.taobao.org/
WORKDIR /app
COPY ./package.json /app/
RUN npm install
COPY . /app/
RUN npm run build
### STAGE 2: Setup ###
FROM nginx:1.13.3-alpine
## Copy our default nginx config
#COPY nginx/conf.d/default.conf /etc/nginx/conf.d/
## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*
## From 'builder' stage copy over the artifacts in dist folder to default nginx public folder
COPY --from=builder /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/DevelopmentIncome/vue_project.git
git@gitee.com:DevelopmentIncome/vue_project.git
DevelopmentIncome
vue_project
vue_project
master

搜索帮助