lxylxy123321 1 долоо хоног өмнө
parent
commit
62733127c0

+ 2 - 2
docker-compose.yml

@@ -17,7 +17,7 @@ services:
     environment:
       - BACKEND_HOST=0.0.0.0
       - BACKEND_PORT=8010
-      - BACKEND_CORS_ORIGINS=http://localhost
+      - BACKEND_CORS_ORIGINS=http://localhost:3000
       # 沐曦 maca 环境变量
       - MACA_PATH=/opt/maca
       - LD_LIBRARY_PATH=/opt/maca/lib:/opt/maca/mxgpu_llvm/lib:/opt/maca/ompi/lib
@@ -38,7 +38,7 @@ services:
     container_name: finetune-frontend
     restart: unless-stopped
     ports:
-      - "80:80"
+      - "3000:80"
     depends_on:
       - backend
     networks:

+ 1 - 3
frontend/Dockerfile

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