clone3 commited on
Commit
37fe4aa
·
verified ·
1 Parent(s): 083649c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -20,10 +20,13 @@ RUN npm install
20
  # Copy entrypoint script
21
  COPY docker-entrypoint.sh /usr/local/bin/
22
 
23
- # Change permissions of the entrypoint script (do this before switching users)
24
  RUN chmod +x /usr/local/bin/docker-entrypoint.sh
25
 
26
- # Change ownership of the directory to the non-root user
 
 
 
27
  RUN chown -R appuser:appuser /app
28
 
29
  # Switch to the non-root user
 
20
  # Copy entrypoint script
21
  COPY docker-entrypoint.sh /usr/local/bin/
22
 
23
+ # Change permissions of the entrypoint script (before switching users)
24
  RUN chmod +x /usr/local/bin/docker-entrypoint.sh
25
 
26
+ # Ensure that the appuser has permissions on the config directory
27
+ RUN chown -R appuser:appuser /app/config
28
+
29
+ # Ensure appuser owns all files (you can adjust this based on the specific needs)
30
  RUN chown -R appuser:appuser /app
31
 
32
  # Switch to the non-root user