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
Build and Push CodeReview / build (push) Waiting to run
Details
This commit is contained in:
parent
a80ab66131
commit
ccffef1997
|
|
@ -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 端口
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
set -e # 一旦执行过程中出现任何错误(命令返回非零值),脚本立即停止。这能防止在注入失败的情况下启动一个错误的容器。
|
||||
|
||||
# 替换 API 地址占位符
|
||||
# 默认为 /api/v1,这样即使用户不传参,也能配合默认的 nginx 代理工作
|
||||
|
|
|
|||
Loading…
Reference in New Issue