mistpe commited on
Commit
85f400c
1 Parent(s): ba2a7a0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -10,14 +10,14 @@ RUN mkdir -p /app/cache
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 && \
16
- sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='[email protected]';" && \
17
- rm /tmp/password_hash
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
 
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 && \
16
+ # sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='[email protected]';" && \
17
+ # rm /tmp/password_hash
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