chore: remove frontend dist volume mount from docker-compose as artifacts are now copied in the Dockerfile.
Build and Push CodeReview / build (push) Waiting to run Details

This commit is contained in:
vinland100 2026-02-26 15:42:31 +08:00
parent a80ab66131
commit ccffef1997
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ services:
image: code-review:frontend
restart: unless-stopped
volumes:
# - ./frontend/dist:/usr/share/nginx/html:ro # 挂载构建产物,本地 pnpm build 后自动生效
# - ./frontend/dist:/usr/share/nginx/html:ro # 挂载构建产物,本地 pnpm build 后自动生效在dockerfile中已经COPY了
- ./frontend/nginx.conf:/etc/nginx/conf.d/default.conf:ro # 挂载 nginx 配置
ports:
- "83:80" # Nginx 监听 80 端口

View File

@ -1,5 +1,5 @@
#!/bin/sh
set -e
set -e # 一旦执行过程中出现任何错误(命令返回非零值),脚本立即停止。这能防止在注入失败的情况下启动一个错误的容器。
# 替换 API 地址占位符
# 默认为 /api/v1这样即使用户不传参也能配合默认的 nginx 代理工作