优化文档以及命令
This commit is contained in:
18
README.md
18
README.md
@@ -13,4 +13,20 @@ docker compose run debian ./init-apt.sh
|
||||
```
|
||||
```bash
|
||||
docker compose run ubuntu ./init-apt.sh
|
||||
```
|
||||
```
|
||||
##### 直接运行
|
||||
```bash
|
||||
curl -sSL https://git.martin98.com/MartinFarm/init/raw/branch/main/init-apt.sh | bash
|
||||
```
|
||||
##### docker 容器中
|
||||
```bash
|
||||
RUN --mount=type=cache,target=/var/cache/apt \
|
||||
--mount=type=cache,target=/var/lib/apt \
|
||||
sed -i '6,$d' /etc/apt/sources.list.d/debian.sources && \
|
||||
sed -i 's|http://deb.debian.org/debian|https://mirrors.martin98.com/repository/debian-tsinghua/|g' /etc/apt/sources.list.d/debian.sources && \
|
||||
apt update && \
|
||||
apt install -y --no-install-recommends \
|
||||
gcc \
|
||||
g++ \
|
||||
python3-dev
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user