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

fix dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -7,4 +7,13 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
7
 
8
  COPY config.toml /app/readeck/config.toml
9
 
 
 
 
 
 
 
 
 
 
10
  CMD ["/bin/readeck","serve", "-config", "/app/readeck/config.toml"]
 
7
 
8
  COPY config.toml /app/readeck/config.toml
9
 
10
+ # --- ADD THIS LINE TO FIX PERMISSION ISSUES ---
11
+ # This command changes the file permissions to be readable and writable by everyone.
12
+ # This is a common fix for permission denied errors, especially if the application
13
+ # needs to write to the config file or if the user running the app is unknown.
14
+ # If config.toml is only read by the application, 'chmod 644' might be sufficient and more secure.
15
+ # However, for debugging and ensuring it runs, '666' is a good start.
16
+ RUN chmod 666 /app/readeck/config.toml
17
+
18
+
19
  CMD ["/bin/readeck","serve", "-config", "/app/readeck/config.toml"]