vilarin commited on
Commit
3b81549
1 Parent(s): 7740600

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  FROM ghcr.io/open-webui/open-webui:main
2
 
3
  WORKDIR /app/backend
@@ -9,7 +12,7 @@ RUN mkdir -p /app/cache
9
  # Install necessary dependencies
10
  RUN apt-get update && apt-get install -y apache2-utils sqlite3
11
 
12
- # Update the password in webui.db
13
  COPY webui.db /webui.db
14
  RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \
15
  htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash && \
@@ -18,7 +21,8 @@ RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \
18
 
19
  # Copy the updated webui.db to the desired location
20
  RUN cp /webui.db /app/backend/data/webui.db
21
- #COPY webui.db /app/backend/data/webui.db
 
22
 
23
  RUN chmod -R 777 /app/backend/static
24
  RUN chmod -R 777 /app/backend/data
 
1
+ # Deployed Open-webui with persistent admin role with password secret.
2
+ # Users registration is allowed by default, but user group data will be lost with each building.
3
+
4
  FROM ghcr.io/open-webui/open-webui:main
5
 
6
  WORKDIR /app/backend
 
12
  # Install necessary dependencies
13
  RUN apt-get update && apt-get install -y apache2-utils sqlite3
14
 
15
+ # Update the admin password in webui.db by setting secret ORIN_PASSWORD, admin account is [email protected]
16
  COPY webui.db /webui.db
17
  RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \
18
  htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash && \
 
21
 
22
  # Copy the updated webui.db to the desired location
23
  RUN cp /webui.db /app/backend/data/webui.db
24
+ # Modify and Copy config.json to set the default lang and preset prompts.
25
+ COPY config.json /app/backend/data/config.json
26
 
27
  RUN chmod -R 777 /app/backend/static
28
  RUN chmod -R 777 /app/backend/data