91 lines
2.9 KiB
Markdown
91 lines
2.9 KiB
Markdown
### debian:meiqia-stable
|
|
```Dockerfile
|
|
FROM debian:13
|
|
|
|
COPY source.list /etc/apt/sources.list
|
|
COPY debian.sources /etc/apt/sources.list.d/debian.sources
|
|
|
|
RUN apt-get update && apt upgrade -y && apt-get install -y \
|
|
curl \
|
|
net-tools \
|
|
tcpdump \
|
|
vim \
|
|
dnsutils \
|
|
procps \
|
|
iputils-ping \
|
|
&& apt-get autoremove \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
CMD ["/bin/bash"]
|
|
```
|
|
|
|
```bash
|
|
docker build --platform linux/amd64 -t harbor.meiqia.com/devops/debian:meiqia-stable -f Dockerfile.bak .
|
|
```
|
|
|
|
### golang:1.26.1
|
|
```Dockerfile
|
|
FROM golang:1.26.1
|
|
|
|
COPY source.list /etc/apt/sources.list
|
|
COPY debian.sources /etc/apt/sources.list.d/debian.sources
|
|
RUN apt-get update && apt-get install -y ca-certificates git-core ssh
|
|
|
|
RUN go env -w GOPRIVATE=gitlab.meiqia.com && go env -w GOPROXY=https://goproxy.cn,direct && go env -w GONOPROXY=gitlab.meiqia.com
|
|
|
|
ADD .netrc /root/.netrc
|
|
```
|
|
|
|
```bash
|
|
docker build --platform linux/amd64 -t harbor.meiqia.com/devops/golang:1.26.1 -f Dockerfile.golang .
|
|
```
|
|
|
|
### source.list
|
|
```
|
|
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ trixie main contrib non-free non-free-firmware
|
|
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-updates main contrib non-free non-free-firmware
|
|
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ trixie-backports main contrib non-free non-free-firmware
|
|
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security trixie-security main contrib non-free non-free-firmware
|
|
```
|
|
|
|
### debian.sources
|
|
```
|
|
Types: deb
|
|
URIs: http://mirrors.tuna.tsinghua.edu.cn/debian
|
|
Suites: trixie trixie-updates trixie-backports
|
|
Components: main contrib non-free non-free-firmware
|
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
|
|
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
|
|
# Types: deb-src
|
|
# URIs: http://mirrors.tuna.tsinghua.edu.cn/debian
|
|
# Suites: trixie trixie-updates trixie-backports
|
|
# Components: main contrib non-free non-free-firmware
|
|
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
|
|
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
|
|
Types: deb
|
|
URIs: http://mirrors.tuna.tsinghua.edu.cn/debian-security
|
|
Suites: trixie-security
|
|
Components: main contrib non-free non-free-firmware
|
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
|
|
# Types: deb-src
|
|
# URIs: http://mirrors.tuna.tsinghua.edu.cn/debian-security
|
|
# Suites: trixie-security
|
|
# Components: main contrib non-free non-free-firmware
|
|
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
|
|
# Types: deb
|
|
# URIs: http://security.debian.org/debian-security
|
|
# Suites: trixie-security
|
|
# Components: main contrib non-free non-free-firmware
|
|
# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
|
|
# # Types: deb-src
|
|
# # URIs: http://security.debian.org/debian-security
|
|
# # Suites: trixie-security
|
|
# # Components: main contrib non-free non-free-firmware
|
|
# # Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
``` |