papaduvalier commited on
Commit
ff23fcd
·
verified ·
1 Parent(s): 7248d2a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,8 +1,8 @@
1
- FROM ghcr.io/open-webui/open-webui:latest
2
  # Deployed Open-webui with persistent admin role with password secret.
3
 
4
 
5
- WORKDIR /app/backend
6
 
7
  RUN mkdir -p /app/backend/open_webui/static
8
  RUN mkdir -p /app/backend/data
@@ -20,10 +20,13 @@ RUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \
20
 
21
  # Copy the updated webui.db to the desired location
22
  RUN sudo cp /webui.db /app/backend/data/webui.db
 
 
 
23
 
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/open_webui/static
28
  RUN chmod -R 777 /app/backend/data
29
  RUN chmod -R 777 /app/cache
 
1
+ FROM ghcr.io/open-webui/open-webui:git-b72150c
2
  # Deployed Open-webui with persistent admin role with password secret.
3
 
4
 
5
+ WORKDIR /app
6
 
7
  RUN mkdir -p /app/backend/open_webui/static
8
  RUN mkdir -p /app/backend/data
 
20
 
21
  # Copy the updated webui.db to the desired location
22
  RUN sudo cp /webui.db /app/backend/data/webui.db
23
+ # HACK for huggingface.co iframe
24
+ RUN sed -i "s|samesite=WEBUI_SESSION_COOKIE_SAME_SITE|samesite='none'|g" backend/open_webui/routers/auths.py
25
+
26
 
27
  # Modify and Copy config.json to set the default lang and preset prompts.
28
  # COPY config.json /app/backend/data/config.json
29
+ COPY ./env.py backend/open_webui/env.py
30
  RUN chmod -R 777 /app/backend/open_webui/static
31
  RUN chmod -R 777 /app/backend/data
32
  RUN chmod -R 777 /app/cache