lalala пре 1 година
родитељ
комит
1ffb9e4a06
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -8,10 +8,13 @@ WORKDIR /app
 COPY . /app
 COPY . /app
 
 
 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
 RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
-RUN apt-get update && apt-get install -y libgl1
 # 安装依赖
 # 安装依赖
 RUN pip install --no-cache-dir -r requirements.txt
 RUN pip install --no-cache-dir -r requirements.txt
 
 
+RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
+    sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
+RUN apt-get update && apt-get install -y libgl1
+
 # 暴露端口
 # 暴露端口
 EXPOSE 2002
 EXPOSE 2002