镜像构建历史
# 2025-02-20 10:36:55 0.00B 设置默认要执行的命令
CMD ["start" "all"]
# 2025-02-20 10:36:55 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2025-02-20 10:36:55 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2025-02-20 10:36:55 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["./entrypoint.sh"]
# 2025-02-20 10:36:55 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/opt/jumpserver/data]
# 2025-02-20 10:36:55 0.00B 设置工作目录为/opt/jumpserver
WORKDIR /opt/jumpserver
# 2025-02-20 10:36:55 292.00B 复制新文件或目录到容器中
COPY /opt/jumpserver/apps/libs/ansible/ansible.cfg /etc/ansible/ # buildkit
# 2025-02-20 10:36:54 5.16MB 复制新文件或目录到容器中
COPY /usr/local/bin /usr/local/bin # buildkit
# 2025-02-20 10:36:53 683.94MB 复制新文件或目录到容器中
COPY /opt /opt # buildkit
# 2025-02-18 10:43:47 46.43MB 执行命令并创建新的镜像层
RUN |3 DEPENDENCIES= libldap2-dev libx11-dev TOOLS= cron ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap APT_MIRROR=http://deb.debian.org /bin/sh -c set -ex && sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && apt-get update > /dev/null && apt-get -y install --no-install-recommends ${DEPENDENCIES} && apt-get -y install --no-install-recommends ${TOOLS} && mkdir -p /root/.ssh/ && echo "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null\n\tCiphers +aes128-cbc\n\tKexAlgorithms +diffie-hellman-group1-sha1\n\tHostKeyAlgorithms +ssh-rsa" > /root/.ssh/config && echo "no" | dpkg-reconfigure dash && apt-get clean all && rm -rf /var/lib/apt/lists/* && echo "0 3 * * * root find /tmp -type f -mtime +1 -size +1M -exec rm -f {} \; && date > /tmp/clean.log" > /etc/cron.d/cleanup_tmp && chmod 0644 /etc/cron.d/cleanup_tmp # buildkit
# 2025-02-18 10:43:47 0.00B 定义构建参数
ARG APT_MIRROR=http://deb.debian.org
# 2025-02-18 10:43:47 0.00B 定义构建参数
ARG TOOLS= cron ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap
# 2025-02-18 10:43:47 0.00B 定义构建参数
ARG DEPENDENCIES= libldap2-dev libx11-dev
# 2025-02-18 10:43:47 0.00B 设置环境变量 LANG PATH
ENV LANG=en_US.UTF-8 PATH=/opt/py3/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-04 06:49:59 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-12-04 06:49:59 36.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
# 2024-12-04 06:49:59 43.53MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -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; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' wheel ; pip3 --version # buildkit
# 2024-12-04 06:49:59 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3
# 2024-12-04 06:49:59 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.11
# 2024-12-04 06:49:59 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-12-04 06:49:59 2.33MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
# 2024-12-04 06:49:59 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-12-04 06:49:59 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-04 06:49:59 80.66MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1738540800'
镜像信息
{
"Id": "sha256:c2b8acfd4f2d5ea98b87a926509624921fe84b2bef319cfa24b8da6f16f22230",
"RepoTags": [
"jumpserver/core:v4.7.0-ce",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core:v4.7.0-ce"
],
"RepoDigests": [
"jumpserver/core@sha256:6f4df44bc5c8bf390931fc4ea7fad8e9b3aa2133e67e761c1138510a13e59372",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core@sha256:0160b80cafed7ad8803161964de751e37304ca6d376d7bc897a8fa5a764b4b88"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-02-20T02:36:55.298974141Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/opt/py3/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=en_US.UTF-8",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_VERSION=3.11.11",
"PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3"
],
"Cmd": [
"start",
"all"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/opt/jumpserver/data": {}
},
"WorkingDir": "/opt/jumpserver",
"Entrypoint": [
"./entrypoint.sh"
],
"OnBuild": null,
"Labels": null,
"StopSignal": "SIGQUIT"
},
"Architecture": "amd64",
"Os": "linux",
"Size": 862043910,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f02c4a4757e3cadfdeadcaa98a879adbdea393f58e54eadb5dae336b53a2fd5d/diff:/var/lib/docker/overlay2/2dd06bba61ff953c64a3e8cb2dc24cdcc36a47399a692d7cae2bf2c17c0fb3d4/diff:/var/lib/docker/overlay2/409f8d25fab9e6ef4e9ff120ae7bb3c6d73f32662406e5dc1f3471d5b174b093/diff:/var/lib/docker/overlay2/8917e2fb56ab6551244d43b157bcf4d75949faa8991979c6f00a52596eed3cf0/diff:/var/lib/docker/overlay2/436015d98eef3ee76a5f03e13c5c8461a5ba1e6e5914e7a8feacc98c56ec7927/diff:/var/lib/docker/overlay2/469c845bc008f8be0b0245240b8ca95283753ce62001cb17dd80a3b0aea85e4b/diff:/var/lib/docker/overlay2/7a836afcb170b9304ef60b8a83e9edec10f9a54cf8054762f3bcf5eb295603be/diff:/var/lib/docker/overlay2/3bc78463648f17408114a40b448694b561d889199e44ccbc2f9901ddc6e0aa77/diff",
"MergedDir": "/var/lib/docker/overlay2/5c5e4a2999411c1c21d3d420dbebf1e163bc89fc4d55e73f5dea3e8041e84557/merged",
"UpperDir": "/var/lib/docker/overlay2/5c5e4a2999411c1c21d3d420dbebf1e163bc89fc4d55e73f5dea3e8041e84557/diff",
"WorkDir": "/var/lib/docker/overlay2/5c5e4a2999411c1c21d3d420dbebf1e163bc89fc4d55e73f5dea3e8041e84557/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:2e1b2125e63e04bd32421253ef37c06451ba9b7ebb0b7f22466324c8a19a09c8",
"sha256:f6fbe336d2ccd65dfec31b412f7c4a815e74b681c1711f778a58f4e0b111a8fe",
"sha256:1faddc592b5a569042284dea0dc9cf812040f1dad64610467db0d79db8a03cc1",
"sha256:7e2e855708ee7d3421c95332eeeb2c50b78ff7bcf8f58cd198a3d84e503412a3",
"sha256:8640cdb2b72b593db1b482111fe78bd4259c89caa503cb0b93956c06765cd54f",
"sha256:c9fbc9e27b75a45df0a888cbcb3c5862e50a2bee94ece9c34c83a0328cba7a5d",
"sha256:a93e92d78495f9c0ce9659c79b7d59263bbf15ffffcabdfebe184ec1ec17f32d",
"sha256:cbfd6bbea950f8e2db154f8c141bca0bb642b4d8c9d845a271a5f034b9e7a63f",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2025-03-13T15:51:30.349890096+08:00"
}
}