10 lines
339 B
Docker
10 lines
339 B
Docker
# 预构建部署:不跑 npm,直接把仓库里已构建好的 dist/ 交给 Nginx
|
|
# 适合 npm 安装受限的网络环境。用法:
|
|
# docker build -f Dockerfile.prebuilt -t buzhou .
|
|
FROM nginx:1.27-alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY dist /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|