Swapnil-101 commited on
Commit
73f071a
·
verified ·
1 Parent(s): 907ef82

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -8,9 +8,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  RUN mkdir /.cache && chmod 777 /.cache
10
 
11
- COPY . .
 
 
 
 
12
 
13
- RUN touch users.db
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"]
 
8
 
9
  RUN mkdir /.cache && chmod 777 /.cache
10
 
11
+ # Set permissions for the working directory
12
+ RUN mkdir /code && chmod 777 /code
13
+
14
+ # Set permissions for the database file
15
+ RUN touch /code/users.db && chmod 777 /code/users.db
16
 
17
+ COPY . .
 
18
 
19
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "--timeout", "300", "main:app"]