Spaces:
Running
Running
| # Use a specific container image for the application | |
| FROM ghcr.io/open-webui/open-webui:v0.6.30 | |
| # Set the main working directory inside the container | |
| WORKDIR /app/backend | |
| # Copy the database file into the container | |
| # This database is a placeholder or dummy, | |
| # and the core configuration is located in the Environment | |
| # and Secret Environment settings of Hugging Face Spaces. | |
| COPY --chown=$UID:$GID src/database/webui.db /app/backend/data/ | |
| COPY --chown=$UID:$GID src/env.py /app/backend/open_webui/ | |
| # Set the database permission | |
| RUN chmod 777 /app/backend/data/webui.db | |
| RUN chmod 777 /app/backend/open_webui/env.py | |
| # Open the port so the application can be accessed | |
| EXPOSE 8080 | |
| # Start the application using the startup script | |
| CMD ["bash", "start.sh"] |