wwforonce commited on
Commit
aa83347
·
1 Parent(s): 4455913

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -16,4 +16,12 @@ COPY config.toml /app/readeck/config.toml
16
  RUN chmod 666 /app/readeck/config.toml
17
 
18
 
 
 
 
 
 
 
 
 
19
  CMD ["/bin/readeck","serve", "-config", "/app/readeck/config.toml"]
 
16
  RUN chmod 666 /app/readeck/config.toml
17
 
18
 
19
+ # --- NEW ADDITION FOR DATA DIRECTORY PERMISSIONS ---
20
+ # Create the 'data' directory and set permissions to allow writing by any user.
21
+ # This ensures the application, even if running as a non-root user,
22
+ # can create and write files (like db.sqlite3) within this directory.
23
+ RUN mkdir -p /app/readeck/data && chmod 777 /app/readeck/data
24
+
25
+
26
+
27
  CMD ["/bin/readeck","serve", "-config", "/app/readeck/config.toml"]