Spaces:
Paused
Paused
Update Dockerfile
Browse files10 unmodified lines1112131415161710 unmodified lines# Update the password in webui.dbCOPY webui.db /webui.dbRUN htpasswd -bnBC 10 "" "$ORIN_PASSWORD" | tr -d ':\n' > /tmp/password_hash && \sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" && \rm /tmp/password_hash10 unmodified lines111213141516171810 unmodified lines# Update the password in webui.dbCOPY webui.db /webui.dbRUN --mount=type=secret,id=ORIN_PASSWORD,mode=0444,required=true \htpasswd -bnBC 10 "" "$(cat /run/secrets/ORIN_PASSWORD)" | tr -d ':\n' > /tmp/password_hash && \sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" && \rm /tmp/password_hash
Dockerfile+2-1