dakunesu commited on
Commit
5a0a80d
·
verified ·
1 Parent(s): 318e81a

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -13,8 +13,8 @@ ENV TZ=Asia/Jakarta
13
  # git clone from private repo
14
  RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true git clone $(cat /run/secrets/GIT_REPO) /app
15
 
16
- # give permission to root user
17
- RUN chown -R root:root . && find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \;
18
 
19
  # set working directory
20
  WORKDIR /app
@@ -22,7 +22,6 @@ WORKDIR /app
22
  # install packages from packages.txt (apt-get install) using xargs
23
  RUN xargs apt-get -y install < packages.txt
24
 
25
-
26
  # Install the Python dependencies
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
 
13
  # git clone from private repo
14
  RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true git clone $(cat /run/secrets/GIT_REPO) /app
15
 
16
+ # allow permissions
17
+ RUN find . -type d -exec bash -c 'chmod 777 "$0"' {} \;
18
 
19
  # set working directory
20
  WORKDIR /app
 
22
  # install packages from packages.txt (apt-get install) using xargs
23
  RUN xargs apt-get -y install < packages.txt
24
 
 
25
  # Install the Python dependencies
26
  RUN pip install --no-cache-dir -r requirements.txt
27