rogermt commited on
Commit
795fd8f
·
verified ·
1 Parent(s): cd764ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,6 +1,14 @@
1
-
2
  FROM ghcr.io/open-webui/open-webui:ollama
3
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
4
 
5
- RUN pip install GitPython
 
 
 
 
 
 
 
6
  RUN mkdir -p /app/backend && cd /app/backend && git init
 
 
 
 
 
1
  FROM ghcr.io/open-webui/open-webui:ollama
 
2
 
3
+ WORKDIR /app
4
+
5
+ # Copy your application files
6
+ COPY main.py .
7
+
8
+ RUN pip install fastapi uvicorn GitPython
9
+
10
+ # Create backend directory and initialize git
11
  RUN mkdir -p /app/backend && cd /app/backend && git init
12
+
13
+ # Command to run the application
14
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]