Spaces:
Running
Running
Update Dockerfile
Browse files- 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/
|
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 |
|