vbvbot9117 commited on
Commit
755a875
·
verified ·
1 Parent(s): e7e062f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -15,11 +15,11 @@ RUN pip install -r requirements.txt
15
  # Copy the application files
16
  COPY . .
17
 
18
- # Create cookies file and set permissions
19
- RUN chmod 644 www.youtube.com_cookies.txt
20
-
21
- # Set permissions for the app directory
22
- RUN chown -R appuser:appuser /app
23
 
24
  # Switch to non-root user
25
  USER appuser
 
15
  # Copy the application files
16
  COPY . .
17
 
18
+ # Set permissions for all files and directories
19
+ RUN find /app -type f -exec chmod 644 {} \; && \
20
+ find /app -type d -exec chmod 755 {} \; && \
21
+ chmod 644 www.youtube.com_cookies.txt && \
22
+ chown -R appuser:appuser /app
23
 
24
  # Switch to non-root user
25
  USER appuser