chore: add pip and apt for speed
This commit is contained in:
parent
28be0d7ce7
commit
fb46bee505
|
@ -1,4 +1,6 @@
|
||||||
FROM python:3.12
|
FROM python:3.12
|
||||||
|
COPY sources.list /etc/apt/sources.list
|
||||||
|
COPY pip.conf /root/.pip/pip.conf
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
[global]
|
||||||
|
index-url = https://mirrors.aliyun.com/pypi/simple/
|
||||||
|
|
||||||
|
[install]
|
||||||
|
trusted-host=mirrors.aliyun.com
|
|
@ -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
|
Loading…
Reference in New Issue