hoangquocviet commited on
Commit
425ddee
·
verified ·
1 Parent(s): 69ea9fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -2,6 +2,13 @@ FROM registry.hf.space/g-rost-sonitranslate-2:latest
2
 
3
  # Chạy quyền root tạm để in log, nhưng KHÔNG dùng để cài pip
4
  USER root
 
 
 
 
 
 
 
5
  RUN echo "=== THƯ MỤC HIỆN TẠI ===" && pwd
6
  RUN echo "=== DANH SÁCH FILE ===" && ls -la
7
 
 
2
 
3
  # Chạy quyền root tạm để in log, nhưng KHÔNG dùng để cài pip
4
  USER root
5
+ RUN git clone https://huggingface.co/hoangquocviet/PIPER_MODELS /home/user/app/PIPER_MODELS && \
6
+ chmod -R 777 /home && \
7
+ chmod -R 777 /home/user/app/PIPER_MODELS
8
+
9
+ # 2. Cấp quyền sở hữu cho user (đảm bảo tính tương thích cao nhất trên HF)
10
+ RUN chown -R user:user /home/user/app/PIPER_MODELS
11
+
12
  RUN echo "=== THƯ MỤC HIỆN TẠI ===" && pwd
13
  RUN echo "=== DANH SÁCH FILE ===" && ls -la
14