EL GHAFRAOUI AYOUB commited on
Commit
527757f
·
1 Parent(s): 3cc1414
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -12,14 +12,11 @@ RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Copy the rest of the application
14
  COPY . .
 
15
  # Create data directory and set permissions
16
  RUN mkdir -p /app/data && \
17
- touch /app/data/invoice.db && \
18
- chmod 777 /app/data && \
19
- chmod 666 /app/data/invoice.db \
20
- chmod 666 invoice.db \
21
- chmod 666 /app/data/sql_app.db \
22
- chmod 666 sql_app.db
23
 
24
  # Create a non-root user
25
  RUN useradd -m myuser
 
12
 
13
  # Copy the rest of the application
14
  COPY . .
15
+
16
  # Create data directory and set permissions
17
  RUN mkdir -p /app/data && \
18
+ touch /app/data/sql_app.db && \
19
+ chmod -R 777 /app/data
 
 
 
 
20
 
21
  # Create a non-root user
22
  RUN useradd -m myuser