dakunesu commited on
Commit
ef92e82
·
verified ·
1 Parent(s): 06c9690

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -19,8 +19,8 @@ WORKDIR /app
19
  # install packages from packages.txt (apt-get install) using xargs
20
  RUN xargs apt-get -y install < packages.txt
21
 
22
- # allow permissions
23
- RUN chmod -R 777 . && chmod -R 777 /root
24
 
25
  # Install the Python dependencies
26
  RUN pip install --no-cache-dir -r requirements.txt
 
19
  # install packages from packages.txt (apt-get install) using xargs
20
  RUN xargs apt-get -y install < packages.txt
21
 
22
+ # give permission to root user
23
+ RUN chown -R root:root . && find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;
24
 
25
  # Install the Python dependencies
26
  RUN pip install --no-cache-dir -r requirements.txt