Twan07 commited on
Commit
5039465
·
verified ·
1 Parent(s): fc86b58

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -18,9 +18,10 @@ RUN apt-get update && apt-get install -y \
18
  USER node
19
  WORKDIR /home/node/app
20
 
21
- # Clone repo từ build arg
22
- ARG REPO
23
- RUN test -n "$REPO" && git clone "$REPO" .
 
24
 
25
  RUN npm install \
26
  && npm install cross-blob \
 
18
  USER node
19
  WORKDIR /home/node/app
20
 
21
+ # Hugging Face sẽ inject REPO từ Secrets vào ENV khi build
22
+ ENV REPO=${REPO}
23
+
24
+ RUN git clone "$REPO" .
25
 
26
  RUN npm install \
27
  && npm install cross-blob \