mistpe commited on
Commit
6febc5a
1 Parent(s): 741005e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -11,13 +11,13 @@ 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='vilarin@huggingface.co';" && \
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
 
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='vilarin@huggingface.co';" && \
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