papaduvalier commited on
Commit
6f8fad3
·
verified ·
1 Parent(s): 7f98158

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -11
Dockerfile CHANGED
@@ -1,14 +1,12 @@
1
- FROM ghcr.io/open-webui/open-webui:v0.6.0
2
-
3
- #RUN apt-get update && apt-get install -y python3 python3-pip curl
4
- #RUN pip3 install --no-cache-dir webdavclient3 requests
5
-
6
- COPY sync_data.sh sync_data.sh
7
-
8
- RUN chmod -R 775 ./data && \
9
- chmod -R 775 /app/backend/open_webui/static && \
10
- chmod +x sync_data.sh
11
 
 
12
  EXPOSE 7860
13
 
14
- CMD ["bash", "start.sh"]
 
 
 
 
 
 
1
+ # Use the official open-webui image as the base
2
+ FROM ghcr.io/open-webui/open-webui:main
 
 
 
 
 
 
 
 
3
 
4
+ # Expose port 7860 for Hugging Face Spaces
5
  EXPOSE 7860
6
 
7
+ # Set environment variables (OPENAI_API_KEY will be injected via Hugging Face Spaces)
8
+ # If needed, you can set defaults or other variables here
9
+ ENV PORT=7860
10
+
11
+ # Command to run the application, ensuring it listens on port 7860
12
+ CMD ["python", "-m", "open_webui", "--port", "7860"]