瀏覽代碼

fix:修改dockerfile

lalala 1 年之前
父節點
當前提交
1ffb9e4a06
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Dockerfile

+ 4 - 1
Dockerfile

@@ -8,10 +8,13 @@ WORKDIR /app
 COPY . /app
 
 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 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