Apex123 commited on
Commit
c71dc1d
·
verified ·
1 Parent(s): 2bd46c7

Create Dockfile

Browse files
Files changed (1) hide show
  1. Dockfile +18 -0
Dockfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18
2
+
3
+ # 安裝 Python + curl + git
4
+ RUN apt update && apt install -y python3 python3-pip git curl
5
+
6
+ # clone Open WebUI
7
+ RUN git clone https://github.com/open-webui/open-webui.git /app
8
+ WORKDIR /app
9
+
10
+ # 安裝前端
11
+ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
12
+ npm install && npm run build
13
+
14
+ # 安裝後端(需要你整合自己的 Flask/FastAPI API 或 LLM provider)
15
+ # 預設使用 ollama,你可以改掉
16
+
17
+ EXPOSE 7860
18
+ CMD ["npm", "run", "start"]