Spaces:
Running
Running
| FROM ghcr.io/open-webui/open-webui:main | |
| RUN chmod -R 777 /app | |
| COPY icon.png /app/build/static/favicon.png | |
| COPY icon.png /app/build/static/favicon.ico | |
| COPY icon.png /app/build/static/apple-touch-icon.png | |
| COPY icon.png /app/build/static/favicon-96x96.png | |
| COPY icon.png /app/build/static/favicon-dark.png | |
| COPY icon.png /app/build/static/favicon.svg | |
| COPY icon.png /app/build/static/splash-dark.png | |
| COPY icon.png /app/build/static/splash.png | |
| COPY icon.png /app/build/static/web-app-manifest-192x192.png | |
| COPY icon.png /app/build/static/web-app-manifest-512x512.png | |
| COPY custom.css /app/build/static/custom.css | |
| RUN find /app/build -type f -exec sed -i 's/Open WebUI/WynGPT/g' {} + || true && \ | |
| find /app/build -type f -exec sed -i 's/OpenWebUI/WynGPT/g' {} + || true && \ | |
| find /app/build -type f -exec sed -i 's/open-webui/wyngpt/g' {} + || true | |
| COPY requirements.txt /app/requirements.txt | |
| COPY sync_webuidb.sh /app/sync_webuidb.sh | |
| RUN chmod +x /app/sync_webuidb.sh && pip install -r /app/requirements.txt | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD bash -c "bash start.sh & bash /app/sync_webuidb.sh" |