Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -11,7 +11,8 @@ 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
|
|
|
15 |
sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" && \
|
16 |
rm /tmp/password_hash
|
17 |
|
|
|
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 |
|