Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +9 -11
Dockerfile
CHANGED
@@ -1,14 +1,12 @@
|
|
1 |
-
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|