This commit is contained in:
浪子
2025-12-29 18:47:42 +08:00
parent eefa8daa4f
commit a22869b41f
5 changed files with 63 additions and 9 deletions
-1
View File
@@ -13,4 +13,3 @@ coverage
.env.local
.env.development.local
.env.test.local
.env.production.local
+1
View File
@@ -0,0 +1 @@
REACT_APP_API_URL=https://api.ssk.im
+4
View File
@@ -12,6 +12,10 @@ RUN npm install --legacy-peer-deps
# 复制源代码
COPY . .
# 构建时传入环境变量(不设置默认值,从 docker-compose 传入)
ARG REACT_APP_API_URL
ENV REACT_APP_API_URL=$REACT_APP_API_URL
# 构建应用
RUN npm run build