Update Dockerfile
Browse files- Dockerfile +12 -1
Dockerfile
CHANGED
@@ -6,7 +6,18 @@ RUN mkdir -p /app/backend/static
|
|
6 |
RUN mkdir -p /app/backend/data
|
7 |
RUN mkdir -p /app/cache
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
RUN chmod -R 777 /app/backend/static
|
12 |
RUN chmod -R 777 /app/backend/data
|
|
|
6 |
RUN mkdir -p /app/backend/data
|
7 |
RUN mkdir -p /app/cache
|
8 |
|
9 |
+
# Install necessary dependencies
|
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 htpasswd -bnBC 10 "" "$ORIN_PASSWORD" | tr -d ':\n' > /tmp/password_hash && \
|
15 |
+
sqlite3 /webui.db "UPDATE auth SET password='$(cat /tmp/password_hash)' WHERE email='vilarin@huggingface.co';" && \
|
16 |
+
rm /tmp/password_hash
|
17 |
+
|
18 |
+
# Copy the updated webui.db to the desired location
|
19 |
+
RUN cp /webui.db /app/backend/data/webui.db
|
20 |
+
#COPY webui.db /app/backend/data/webui.db
|
21 |
|
22 |
RUN chmod -R 777 /app/backend/static
|
23 |
RUN chmod -R 777 /app/backend/data
|