wynai commited on
Commit
2c7c2a3
·
verified ·
1 Parent(s): fc561a1

Upload Dockerfile.txt

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +31 -0
Dockerfile.txt ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ghcr.io/open-webui/open-webui:main
2
+
3
+ RUN chmod -R 777 /app
4
+
5
+ COPY icon.png /app/build/static/favicon.png
6
+ COPY icon.png /app/build/static/favicon.ico
7
+ COPY icon.png /app/build/static/apple-touch-icon.png
8
+ COPY icon.png /app/build/static/favicon-96x96.png
9
+ COPY icon.png /app/build/static/favicon-dark.png
10
+ COPY icon.png /app/build/static/favicon.svg
11
+ COPY icon.png /app/build/static/splash-dark.png
12
+ COPY icon.png /app/build/static/splash.png
13
+ COPY icon.png /app/build/static/web-app-manifest-192x192.png
14
+ COPY icon.png /app/build/static/web-app-manifest-512x512.png
15
+ COPY custom.css /app/build/static/custom.css
16
+
17
+ RUN find /app/build -type f -exec sed -i 's/Open WebUI/WynGPT/g' {} + || true && \
18
+ find /app/build -type f -exec sed -i 's/OpenWebUI/WynGPT/g' {} + || true && \
19
+ find /app/build -type f -exec sed -i 's/open-webui/wyngpt/g' {} + || true
20
+
21
+ COPY requirements.txt /app/requirements.txt
22
+ COPY sync_webuidb.sh /app/sync_webuidb.sh
23
+
24
+ RUN chmod +x /app/sync_webuidb.sh && pip install -r /app/requirements.txt
25
+
26
+ ENV HOST=0.0.0.0
27
+ ENV PORT=7860
28
+
29
+ EXPOSE 7860
30
+
31
+ CMD bash -c "bash start.sh & bash /app/sync_webuidb.sh"