commit
This commit is contained in:
@@ -13,4 +13,3 @@ coverage
|
||||
.env.local
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
REACT_APP_API_URL=https://api.ssk.im
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user