1 Star 0 Fork 53

zilo312 / Blog.Admin

forked from 老张的哲学 / Blog.Admin 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile2 746 Bytes
一键复制 编辑 原始数据 按行查看 历史
MandIand 提交于 2021-04-08 10:28 . add note
# BUILDING
FROM node:lts-alpine AS builder
WORKDIR /app
COPY . ./
# 这里可以做单独配置
# COPY docker/config.prod.ts ./src/config/config.prod.ts
# 国内可以打开下面一行加速,但有时候会出现503问题,暂时不用
# RUN npm config set registry https://registry.npm.taobao.org/ && npm config set sass-binary-site http://npm.taobao.org/mirrors/node-sass
RUN npm install && \
# npm install typescript -g && \
# npm run lint && \
npm run build
# nginx
FROM nginx:stable-alpine
MAINTAINER vueadmin
COPY --from=builder app/dist/ /usr/share/nginx/html/
# 自定义nginx.conf配置,比如history模式下,会404问题
RUN rm /etc/nginx/conf.d/default.conf
COPY docker/nginx.conf /etc/nginx/conf.d/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zilo312/Blog.Admin.git
git@gitee.com:zilo312/Blog.Admin.git
zilo312
Blog.Admin
Blog.Admin
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891