Spaces:
Build error
Build error
| # Use the official open-webui image as the base | |
| FROM ghcr.io/open-webui/open-webui:main | |
| # Expose port 7860 for Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Set environment variables (OPENAI_API_KEY will be injected via Hugging Face Spaces) | |
| # If needed, you can set defaults or other variables here | |
| ENV PORT=7860 | |
| # Command to run the application, ensuring it listens on port 7860 | |
| # Run the application using uvicorn, binding to port 7860 | |
| CMD ["uvicorn", "open_webui.main:app", "--host", "0.0.0.0", "--port", "7860"] |