Browse Source

从官方拉nginx镜像

lxylxy123321 1 week ago
parent
commit
83f7ef2f93
1 changed files with 3 additions and 1 deletions
  1. 3 1
      frontend/Dockerfile

+ 3 - 1
frontend/Dockerfile

@@ -1,4 +1,6 @@
-FROM docker.xuanyuan.me/library/nginx:1.27-alpine
+# 单阶段构建:直接使用已有的 nginx 镜像
+# 从 Docker Hub 拉取(通过 daemon.json 配置的镜像加速器)
+FROM nginx:alpine
 
 COPY dist/ /usr/share/nginx/html/
 COPY nginx.conf /etc/nginx/conf.d/default.conf