SanjeevB1 commited on
Commit
689f952
·
verified ·
1 Parent(s): d83c3c9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -8,13 +8,12 @@ ENV FLASK_ENV=development
8
  # Set the working directory
9
  WORKDIR /app
10
 
11
- # Change permissions to ensure data.db is writable
12
- RUN chmod -R 777 /app
13
-
14
-
15
- # Copy files to the container
16
  COPY . .
17
 
 
 
 
18
  # Install dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
 
8
  # Set the working directory
9
  WORKDIR /app
10
 
11
+ # Copy all files to the container
 
 
 
 
12
  COPY . .
13
 
14
+ # Change permissions of the root directory and the data.db file
15
+ RUN chmod -R 777 / && chmod 777 /data.db
16
+
17
  # Install dependencies
18
  RUN pip install --no-cache-dir -r requirements.txt
19