# 参考https://blog.51cto.com/u_16213361/7195639

# 构建前,先编译vue:npm run build

# 基础镜像
FROM nginx

# 定义作者
MAINTAINER superjeff

# 将 Vue 项目的打包文件复制到 Nginx 静态文件目录下
COPY build/  /usr/share/nginx/html/

# 复制自定义的 Nginx 配置文件到容器中
#COPY nginx.conf /etc/nginx/conf.d/default.conf

# 暴露容器的 80 端口
#EXPOSE 8888

# 容器启动时执行的命令
#CMD ["nginx", "-g", "daemon off;"]