Swapnil-101 commited on
Commit
4e0cc5f
·
verified ·
1 Parent(s): ffe079a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -10,8 +10,7 @@ RUN mkdir /.cache && chmod 777 /.cache
10
 
11
  COPY . .
12
 
13
- RUN touch users.db && chmod 777 users.db
 
14
 
15
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]
16
-
17
-
 
10
 
11
  COPY . .
12
 
13
+ RUN touch users.db # Create an empty SQLite database file
14
+ RUN chmod 777 users.db # Set permissions for the database file
15
 
16
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]