JerryZhouYG commited on
Commit
f0966f0
·
verified ·
1 Parent(s): d3f3f06

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  FROM ghcr.io/open-webui/open-webui:dev
2
-
 
 
3
  COPY sync_data.sh sync_data.sh
4
 
5
  RUN chmod -R 777 ./data && \
 
1
  FROM ghcr.io/open-webui/open-webui:dev
2
+ ENV HF_ENDPOINT=https://hf-mirror.com/
3
+ # 不推荐在 Dockerfile 中直接修改 /etc/hosts 文件
4
+ RUN echo "host.docker.internal:host-gateway" >> /etc/hosts
5
  COPY sync_data.sh sync_data.sh
6
 
7
  RUN chmod -R 777 ./data && \