iridescentX commited on
Commit
c0fc32f
·
verified ·
1 Parent(s): a062c63

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -8,8 +8,9 @@ RUN wget -qO- -t1 -T2 "https://api.github.com/repos/Calcium-Ion/new-api/releases
8
  awk -F ":" '{print $2}' | \
9
  sed 's/\"//g;s/,//g;s/ //g' > VERSION
10
 
11
- # 递归地替换所有文件中的 "/v1" "/hf/v1"
12
- RUN find /build -type f -exec sed -i'' 's|/v1|/hf/v1|g' {} +
 
13
 
14
  WORKDIR /build/web
15
  RUN npm install
 
8
  awk -F ":" '{print $2}' | \
9
  sed 's/\"//g;s/,//g;s/ //g' > VERSION
10
 
11
+ # Replace /v1 with /hf/v1 in all files under the relay and router directories
12
+ RUN find /build/router /build/relay -type f -exec sed -i'' 's|/v1|/hf/v1|g' {} +
13
+
14
 
15
  WORKDIR /build/web
16
  RUN npm install