镜像构建历史
# 2024-07-17 23:12:17 0.00B 设置默认要执行的命令
CMD ["start" "all"]
# 2024-07-17 23:12:17 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2024-07-17 23:12:17 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2024-07-17 23:12:17 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["./entrypoint.sh"]
# 2024-07-17 23:12:17 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/opt/jumpserver/data]
# 2024-07-17 23:12:17 0.00B 设置环境变量 VERSION
ENV VERSION=v4.0.1
# 2024-07-17 23:12:17 0.00B 定义构建参数
ARG VERSION=v4.0.1
# 2024-07-17 23:12:17 0.00B 设置工作目录为/opt/jumpserver
WORKDIR /opt/jumpserver
# 2024-07-17 23:12:17 292.00B 复制新文件或目录到容器中
COPY /opt/jumpserver/apps/libs/ansible/ansible.cfg /etc/ansible/ # buildkit
# 2024-07-17 23:12:17 4.69MB 复制新文件或目录到容器中
COPY /usr/local/bin /usr/local/bin # buildkit
# 2024-07-17 23:12:17 862.77MB 复制新文件或目录到容器中
COPY /opt /opt # buildkit
# 2024-07-17 21:09:32 46.29MB 执行命令并创建新的镜像层
RUN |4 TARGETARCH=amd64 DEPENDENCIES= libldap2-dev libx11-dev TOOLS= ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap APT_MIRROR=http://deb.debian.org /bin/sh -c set -ex && rm -f /etc/apt/apt.conf.d/docker-clean && echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >/etc/apt/apt.conf.d/keep-cache && 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 && 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 && sed -i "s@# export @export @g" ~/.bashrc && sed -i "s@# alias @alias @g" ~/.bashrc # buildkit
# 2024-07-17 21:09:32 0.00B 定义构建参数
ARG APT_MIRROR=http://deb.debian.org
# 2024-07-17 21:09:32 0.00B 定义构建参数
ARG TOOLS= ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap
# 2024-07-17 21:09:32 0.00B 定义构建参数
ARG DEPENDENCIES= libldap2-dev libx11-dev
# 2024-07-17 21:09:32 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-07-17 21:09:32 0.00B 定义构建参数
ARG TARGETARCH=amd64
# 2024-07-08 06:31:37 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-07-08 06:31:37 11.60MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit
# 2024-07-08 06:31:37 0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7
# 2024-07-08 06:31:37 0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/e03e1607ad60522cf34a92e834138eb89f57667c/public/get-pip.py
# 2024-07-08 06:31:37 0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
# 2024-07-08 06:31:37 0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=24.0
# 2024-07-08 06:31:37 32.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 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-07-08 06:31:37 31.99MB 执行命令并创建新的镜像层
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 libexpat1-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"; 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-system-expat --without-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:-}" "PROFILE_TASK=${PROFILE_TASK:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" "PROFILE_TASK=${PROFILE_TASK:-}" 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/*; python3 --version # buildkit
# 2024-07-08 06:31:37 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.9
# 2024-07-08 06:31:37 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-07-08 06:31:37 3.11MB 执行命令并创建新的镜像层
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-07-08 06:31:37 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-07-08 06:31:37 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-07-02 09:25:24 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-07-02 09:25:24 80.63MB
/bin/sh -c #(nop) ADD file:49759b7a74bac875e3619e20ed5a9521101c7729f601d90976d0755d30e97499 in /
镜像信息
{
"Id": "sha256:962c206958ac973ce21b71d3779b3d8ad6f447f6a029b45380d90fc51e489ad9",
"RepoTags": [
"jumpserver/core:v4.0.1-ce",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core:v4.0.1-ce"
],
"RepoDigests": [
"jumpserver/core@sha256:7d0ec19adbbfcec685a897013824eda51ca4938d6d36ea82e7c49c7b67846898",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core@sha256:2db53c49702bb66a8e387ae59ba7a889a33391b17d20d3520a6af39ec6349db1"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-07-17T15:12:17.691781985Z",
"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.9",
"PYTHON_PIP_VERSION=24.0",
"PYTHON_SETUPTOOLS_VERSION=65.5.1",
"PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/e03e1607ad60522cf34a92e834138eb89f57667c/public/get-pip.py",
"PYTHON_GET_PIP_SHA256=ee09098395e42eb1f82ef4acb231a767a6ae85504a9cf9983223df0a7cbd35d7",
"VERSION=v4.0.1"
],
"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": 1041086123,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/d75f59536e244b17e2608ac02dbf880eab0e3ec330bf422b3b243295be93de80/diff:/var/lib/docker/overlay2/39fec1130bf9bbb90dab2156c8ff14e061f4d70566aeeab61251fde661c2e945/diff:/var/lib/docker/overlay2/e31765a5108bbdf1e15b87f3b9fb6c43d4cc3b1b02c6b62fc38743c823a30942/diff:/var/lib/docker/overlay2/5c9df8489288e87dc3fc0d2980ed7cdba1a86b82b26f893aeeb4ffc79a99439e/diff:/var/lib/docker/overlay2/fc8188ae8d31f039b603b9ac4602da55de53d66264f183fbc7b6574d02f39f8e/diff:/var/lib/docker/overlay2/c419dc34befad765f63f88b83ab786d7f3ff7e83e7cdc06a9a10d59c756f3857/diff:/var/lib/docker/overlay2/77fda61cc7fdfb34e76d6487af158ff4af4e006bb0b85043c6223e6d4169efb9/diff:/var/lib/docker/overlay2/b5011a838a550f628af1d1603825a49bc967fe58b6df36efc85289eb49c7d87e/diff:/var/lib/docker/overlay2/e1d09f3e6e0025289f7d4dcf31fcda172bfd8d5a8ae73cdb39ce870296123e32/diff",
"MergedDir": "/var/lib/docker/overlay2/3e17dcdbde96dfbdd28e01245349e6f5e97b8f16077e5a5419dc7ebd8ed061d5/merged",
"UpperDir": "/var/lib/docker/overlay2/3e17dcdbde96dfbdd28e01245349e6f5e97b8f16077e5a5419dc7ebd8ed061d5/diff",
"WorkDir": "/var/lib/docker/overlay2/3e17dcdbde96dfbdd28e01245349e6f5e97b8f16077e5a5419dc7ebd8ed061d5/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:a2375faae1321ab431cdefbc4c1e3de02e8710ac4dff782caecbeecf391875c3",
"sha256:38f4cd1f2f585288d16d824df89b09e8ff203afc6ae869af8961a0b4f101d4f2",
"sha256:ac57353351c9b5345c23d6281ef1973f0b053a6cadf15e4c533269c9690a870f",
"sha256:c827de9bd91d7b12ddd195eb8dd0da142d2e6886981f5ac86601d0b7dcf38a75",
"sha256:ad6bd1bdf5c04ef18dd95511ef2e74e2332b534a1a8a3c1950aa4259a3ad4be2",
"sha256:f6436eeaf0fe4fcb5a0f6e83f41a6313a5354eb262f4bec635b07963f871986e",
"sha256:35e9eef5c9a5455316c7e6c654e12b75b2f56418070735d03c2b7d000e6266f0",
"sha256:57de9af9e20bec88831dbd1679477e0ddd97626fd7a308da30534c79980c717d",
"sha256:dcae01dd27b379be9a9762901aaf9855257165d577099c5861492d3d03f4a1f7",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2025-03-20T14:41:35.595026668+08:00"
}
}