镜像构建历史
# 2025-01-09 08:13:35 0.00B 设置默认要执行的命令
CMD ["haproxy" "-f" "/usr/local/etc/haproxy/haproxy.cfg"]
# 2025-01-09 08:13:35 0.00B 设置工作目录为/var/lib/haproxy
WORKDIR /var/lib/haproxy
# 2025-01-09 08:13:35 0.00B 指定运行容器时使用的用户
USER haproxy
# 2025-01-09 08:13:35 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2025-01-09 08:13:35 417.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2025-01-09 08:13:35 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGUSR1
# 2025-01-09 08:13:35 20.92MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update && apt-get install -y --no-install-recommends gcc libc6-dev liblua5.4-dev libpcre2-dev libssl-dev make wget ; rm -rf /var/lib/apt/lists/*; wget -O haproxy.tar.gz "$HAPROXY_URL"; echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c; mkdir -p /usr/src/haproxy; tar -xzf haproxy.tar.gz -C /usr/src/haproxy --strip-components=1; rm haproxy.tar.gz; makeOpts=' TARGET=linux-glibc USE_GETADDRINFO=1 USE_LUA=1 LUA_INC=/usr/include/lua5.4 USE_OPENSSL=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_PROMEX=1 EXTRA_OBJS=" " '; dpkgArch="$(dpkg --print-architecture)"; case "$dpkgArch" in armel) makeOpts="$makeOpts ADDLIB=-latomic" ;; esac; nproc="$(nproc)"; eval "make -C /usr/src/haproxy -j '$nproc' all $makeOpts"; eval "make -C /usr/src/haproxy install-bin $makeOpts"; mkdir -p /usr/local/etc/haproxy; cp -R /usr/src/haproxy/examples/errorfiles /usr/local/etc/haproxy/errors; rm -rf /usr/src/haproxy; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark; find /usr/local -type f -executable -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; haproxy -v # buildkit
# 2025-01-09 08:13:35 0.00B 设置环境变量 HAPROXY_SHA256
ENV HAPROXY_SHA256=af35dc8bf3193870b72276a63920974bef1405fc41038d545b86b641aa59f400
# 2025-01-09 08:13:35 0.00B 设置环境变量 HAPROXY_URL
ENV HAPROXY_URL=https://www.haproxy.org/download/3.1/src/haproxy-3.1.2.tar.gz
# 2025-01-09 08:13:35 0.00B 设置环境变量 HAPROXY_VERSION
ENV HAPROXY_VERSION=3.1.2
# 2025-01-09 08:13:35 4.31KB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; groupadd --gid 99 --system haproxy; useradd --gid haproxy --home-dir /var/lib/haproxy --no-create-home --system --uid 99 haproxy ; mkdir /var/lib/haproxy; chown haproxy:haproxy /var/lib/haproxy # buildkit
# 2025-01-09 08:13:35 9.21MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates ; rm -rf /var/lib/apt/lists/* # buildkit
# 2025-01-09 08:13:35 74.77MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
镜像信息
{
"Id": "sha256:951a8c9fcd32fcbc06df1ba5942e885209f7f30b10f55182d4605ec0b32bc6f1",
"RepoTags": [
"haproxy:bookworm",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/haproxy:bookworm"
],
"RepoDigests": [
"haproxy@sha256:46158355f629a5e8e9235a9c9a82b9faac2e1a8bcb036c49996f7a729af95dd9",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/haproxy@sha256:872d97a57045c6b490b3f33f59dce14736f1fc2157e40fbf4e1c5dac74cdd3b3"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-09T00:13:35Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "haproxy",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HAPROXY_VERSION=3.1.2",
"HAPROXY_URL=https://www.haproxy.org/download/3.1/src/haproxy-3.1.2.tar.gz",
"HAPROXY_SHA256=af35dc8bf3193870b72276a63920974bef1405fc41038d545b86b641aa59f400"
],
"Cmd": [
"haproxy",
"-f",
"/usr/local/etc/haproxy/haproxy.cfg"
],
"Image": "",
"Volumes": null,
"WorkingDir": "/var/lib/haproxy",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": null,
"StopSignal": "SIGUSR1"
},
"Architecture": "amd64",
"Os": "linux",
"Size": 104914189,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/67fa8a12f9daec2a8887c498428db5ee83968b7b5687f8c6b4c931c81d5ee312/diff:/var/lib/docker/overlay2/20247ea72c83791db92bb125d1ef8ec6c25550a951f9b8a9ffdb68fc1d4f29ba/diff:/var/lib/docker/overlay2/ac9159dd6116f52800a2ae9be3a6c1b95d070db3025caff5a190c88084f5b3da/diff:/var/lib/docker/overlay2/77f2cbb1d4dc7fb97eb3dd28e1bb9c0ef55d24c2c577083807912ae075c62871/diff:/var/lib/docker/overlay2/84c5fbb64568c2307107468523b21101c6d2cc2d93b7bd46134875b7faeff5d5/diff",
"MergedDir": "/var/lib/docker/overlay2/8d549f95c7b7ea24c92425b63c63846096f0f7da6e2f5e76f13ae980d5b777b3/merged",
"UpperDir": "/var/lib/docker/overlay2/8d549f95c7b7ea24c92425b63c63846096f0f7da6e2f5e76f13ae980d5b777b3/diff",
"WorkDir": "/var/lib/docker/overlay2/8d549f95c7b7ea24c92425b63c63846096f0f7da6e2f5e76f13ae980d5b777b3/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
"sha256:7ddd588936e44ae08851380e4429da529e849bc3e9b7cfa8c45e9bdb31b3a8fb",
"sha256:105443e6d01f634fdb524b7a668733a3ed75734313b66b0427ab747e4b228e9b",
"sha256:2b83823cfec529af50ba2c6fdcdeadf384733048d5ac7cbf0f9763673fc35f1a",
"sha256:85262888e1b10affe81baeeb02dd84304f354179811eb6840d7de453a3c1e008",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2025-01-17T15:47:12.375316282+08:00"
}
}