shimen commited on
Commit
890c8b7
·
verified ·
1 Parent(s): bbf44e4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile CHANGED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/open-webui/open-webui:main
2
+
3
+ # Expose the port Open WebUI runs on
4
+ EXPOSE 7860
5
+
6
+ # Set environment variables
7
+ ENV PORT=7860
8
+ ENV WEBUI_SECRET_KEY=your-secret-key-here
9
+ ENV DATA_DIR=/data
10
+
11
+ # Create data directory
12
+ RUN mkdir -p /data
13
+
14
+ CMD ["bash", "-c", "cd /app/backend && exec uvicorn main:app --host 0.0.0.0 --port $PORT"]