GordonChan365 commited on
Commit
c5e83c2
·
verified ·
1 Parent(s): f79cc65

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  FROM xprobe/xinference:latest-cpu
2
-
 
3
 
4
  # 指定容器启动时运行的命令
5
  CMD ["xinference-local", "--host", "0.0.0.0", "--port", "9997"]
 
1
  FROM xprobe/xinference:latest-cpu
2
+ ENV XINFERENCE_HOME=/.cache
3
+ RUN mkdir /.cache && chmod 777 /.cache
4
 
5
  # 指定容器启动时运行的命令
6
  CMD ["xinference-local", "--host", "0.0.0.0", "--port", "9997"]