hadadrjt commited on
Commit
5120e77
·
1 Parent(s): d9739fe

ai: Enable new user signup.

Browse files

https://huggingface.co/spaces/umint/ai/discussions/15

Files changed (2) hide show
  1. Dockerfile +4 -5
  2. src/database/webui.db +1 -1
Dockerfile CHANGED
@@ -10,14 +10,13 @@ FROM hadadrjt/ai:latest
10
  WORKDIR /app/backend
11
 
12
  # Copy the database file into the container
13
- COPY --chown=$UID:$GID src/database/webui.db /app/backend/data/
14
-
15
- # Set the database file to read-only
16
- # to prevent unauthorized changes and improve security.
17
  # This database is a placeholder or dummy,
18
  # and the core configuration is located in the Environment
19
  # and Secret Environment settings of Hugging Face Spaces.
20
- RUN chmod 555 /app/backend/data/webui.db
 
 
 
21
 
22
  # Search Engine Optimization (SEO)
23
  # Robots Exclusion Protocol
 
10
  WORKDIR /app/backend
11
 
12
  # Copy the database file into the container
 
 
 
 
13
  # This database is a placeholder or dummy,
14
  # and the core configuration is located in the Environment
15
  # and Secret Environment settings of Hugging Face Spaces.
16
+ COPY --chown=$UID:$GID src/database/webui.db /app/backend/data/
17
+
18
+ # Set the database permission
19
+ RUN chmod 777 /app/backend/data/webui.db
20
 
21
  # Search Engine Optimization (SEO)
22
  # Robots Exclusion Protocol
src/database/webui.db CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f2025ebd93a3417cc446a4cbc59b11bb34503739d77734a8084813bbddafe3d6
3
  size 9211904
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cc69df923931779fca714a90a8db0e4afa75732f6ba8b3be40c331a4bfacac2
3
  size 9211904