hoangquocviet commited on
Commit
faaed67
·
verified ·
1 Parent(s): 6b34c22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -76,7 +76,7 @@ RUN git clone https://github.com/hoangquocvietbro/VideoLingo.git .
76
  # Tạo thư mục config pip trước
77
  RUN mkdir -p ${HOME}/.config/pip
78
  # Cấu hình pip mirror CHO USER NÀY
79
- RUN python3 -m pip config --user set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
80
 
81
  # Kiểm tra xem file config đã được tạo đúng chưa (DEBUG)
82
  RUN echo "Checking pip config..."
@@ -85,7 +85,7 @@ RUN cat ${HOME}/.config/pip/pip.conf || echo "Pip config file not found or empty
85
 
86
  # Kiểm tra kết nối đến mirror (DEBUG)
87
  RUN echo "Attempting to connect to mirror..."
88
- RUN curl -v https://pypi.tuna.tsinghua.edu.cn/simple || echo "Curl connection failed!"
89
 
90
  # Cài đặt PyTorch CPU (sẽ sử dụng mirror đã cấu hình)
91
  RUN python3 -m pip install --user --no-cache-dir torch==2.0.0+cpu torchaudio==2.0.0+cpu --index-url https://download.pytorch.org/whl/cpu
 
76
  # Tạo thư mục config pip trước
77
  RUN mkdir -p ${HOME}/.config/pip
78
  # Cấu hình pip mirror CHO USER NÀY
79
+ RUN python3 -m pip config --user set global.index-url https://mirrors.aliyun.com/pypi/simple/
80
 
81
  # Kiểm tra xem file config đã được tạo đúng chưa (DEBUG)
82
  RUN echo "Checking pip config..."
 
85
 
86
  # Kiểm tra kết nối đến mirror (DEBUG)
87
  RUN echo "Attempting to connect to mirror..."
88
+ RUN curl -v https://mirrors.aliyun.com/pypi/simple/ || echo "Curl connection failed!"
89
 
90
  # Cài đặt PyTorch CPU (sẽ sử dụng mirror đã cấu hình)
91
  RUN python3 -m pip install --user --no-cache-dir torch==2.0.0+cpu torchaudio==2.0.0+cpu --index-url https://download.pytorch.org/whl/cpu