Browse Source

project: edit dockerfile 5

Yi 1 năm trước cách đây
mục cha
commit
9953396a13
1 tập tin đã thay đổi với 3 bổ sung5 xóa
  1. 3 5
      Dockerfile

+ 3 - 5
Dockerfile

@@ -1,14 +1,12 @@
 FROM node:14.0.0 as builder
 WORKDIR /app/tmr-group-admin
+
+ENV HOSTIP = 'http://192.168.1.70:8081/'
 #拷贝源码
 COPY . .
 
-ENV HOSTIP = 'http://127.0.0.1:8081/'
-
-CMD sed -i "s/SERVER_URL/$hostip/g" ./src/utils/configs.js
+RUN sed -i "s/SERVER_URL/$hostip/g" ./src/utils/configs.js
 
-RUN ls -l && pwd
-RUN cat ./src/utils/configs.js
 #安装依赖
 RUN npm install --registry=https://registry.npm.taobao.org