|
|
@@ -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
|
|
|
|