Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -10,7 +10,7 @@ RUN mkdir -p /app/cache
|
|
10 |
RUN apt-get update && apt-get install -y apache2-utils sqlite3
|
11 |
|
12 |
# Update the admin password in webui.db by setting secret ORIN_PASSWORD, admin account is [email protected]
|
13 |
-
COPY
|
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]';" && \
|
|
|
10 |
RUN apt-get update && apt-get install -y apache2-utils sqlite3
|
11 |
|
12 |
# Update the admin password in webui.db by setting secret ORIN_PASSWORD, admin account is [email protected]
|
13 |
+
COPY webui3.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]';" && \
|