chore: add pip and apt for speed

This commit is contained in:
Jeremy Yin 2024-03-18 16:52:05 +08:00
parent 28be0d7ce7
commit fb46bee505
3 changed files with 22 additions and 0 deletions

View File

@ -1,4 +1,6 @@
FROM python:3.12
COPY sources.list /etc/apt/sources.list
COPY pip.conf /root/.pip/pip.conf
WORKDIR /app

5
pip.conf Normal file
View File

@ -0,0 +1,5 @@
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

15
sources.list Normal file
View File

@ -0,0 +1,15 @@
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware
# deb-src https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware
# deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
# # deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware