Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
|
@@ -8,10 +8,16 @@ RUN git clone --branch v0.6.36 https://github.com/open-webui/open-webui.git open
|
|
| 8 |
# Install backend dependencies
|
| 9 |
RUN pip install -r open-webui/backend/requirements.txt
|
| 10 |
|
|
|
|
|
|
|
|
|
|
| 11 |
# Add backend directory to Python path
|
| 12 |
ENV PYTHONPATH=/app/open-webui/backend
|
| 13 |
|
|
|
|
|
|
|
|
|
|
| 14 |
EXPOSE 8080
|
| 15 |
|
| 16 |
-
# Run
|
| 17 |
CMD ["python", "open-webui/backend/open_webui/main.py", "--host=0.0.0.0", "--port=8080"]
|
|
|
|
| 8 |
# Install backend dependencies
|
| 9 |
RUN pip install -r open-webui/backend/requirements.txt
|
| 10 |
|
| 11 |
+
# Build frontend
|
| 12 |
+
RUN cd open-webui && npm install && npm run build
|
| 13 |
+
|
| 14 |
# Add backend directory to Python path
|
| 15 |
ENV PYTHONPATH=/app/open-webui/backend
|
| 16 |
|
| 17 |
+
# Create data directory
|
| 18 |
+
RUN mkdir -p /app/open-webui/backend/data
|
| 19 |
+
|
| 20 |
EXPOSE 8080
|
| 21 |
|
| 22 |
+
# Run OpenWebUI
|
| 23 |
CMD ["python", "open-webui/backend/open_webui/main.py", "--host=0.0.0.0", "--port=8080"]
|