MYDOC/Dockerfile
洪剑峰 37c85af234
All checks were successful
Node.js CI / build (push) Successful in 3m45s
123
2024-08-13 16:23:37 +08:00

23 lines
478 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 参考https://blog.51cto.com/u_16213361/7195639
# 构建前先编译vuenpm 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;"]