smgc commited on
Commit
ff0937a
1 Parent(s): 67d1169

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -12,7 +12,7 @@ ARG HF_DOMAIN
12
  # 使用 ENV 指令设置环境变量
13
  ENV HF_DOMAIN $HF_DOMAIN
14
 
15
- RUN awk '/const HuggingChatDomain = "https:\/\/huggingface.co"/ { print "import \"os\""; print "var HuggingChatDomain = os.Getenv(\"HF_DOMAIN\")"; next }1' /app/internal/consts/const.go > temp && mv temp /app/internal/consts/const.go
16
  RUN sed -i 's|/v1/|/api/v1/|g' /app/main.go
17
  RUN sed -i 's|:80|:8000|g' /app/main.go
18
 
 
12
  # 使用 ENV 指令设置环境变量
13
  ENV HF_DOMAIN $HF_DOMAIN
14
 
15
+ RUN awk '/const HuggingChatDomain = "https:\/\/huggingface.co"/ { print "import \"os\""; print "var HuggingChatDomain = os.Getenv(\"HF_DOMAIN\")"; next }1' /app/internal/config/domain.go > temp && mv temp /app/internal/config/domain.go
16
  RUN sed -i 's|/v1/|/api/v1/|g' /app/main.go
17
  RUN sed -i 's|:80|:8000|g' /app/main.go
18