Synced repo using 'sync_with_huggingface' Github Action
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -13,14 +13,15 @@ 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 |
# set working directory
|
17 |
WORKDIR /app
|
18 |
|
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
|
|
|
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
|
21 |
|
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
|