镜像构建历史
# 2025-03-28 11:23:20 0.00B 设置默认要执行的命令
CMD ["start" "all"]
# 2025-03-28 11:23:20 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2025-03-28 11:23:20 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2025-03-28 11:23:20 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["./entrypoint.sh"]
# 2025-03-28 11:23:20 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/opt/jumpserver/data]
# 2025-03-28 11:23:20 0.00B 设置工作目录为/opt/jumpserver
WORKDIR /opt/jumpserver
# 2025-03-28 11:23:20 292.00B 复制新文件或目录到容器中
COPY /opt/jumpserver/apps/libs/ansible/ansible.cfg /etc/ansible/ # buildkit
# 2025-03-28 11:23:20 5.16MB 复制新文件或目录到容器中
COPY /usr/local/bin /usr/local/bin # buildkit
# 2025-03-28 11:23:19 683.02MB 复制新文件或目录到容器中
COPY /opt /opt # buildkit
# 2025-03-28 11:22:56 46.43MB 执行命令并创建新的镜像层
RUN |3 DEPENDENCIES= libldap2-dev libx11-dev TOOLS= cron ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap APT_MIRROR=http://mirrors.aliyun.com /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-03-28 11:22:56 0.00B 定义构建参数
ARG APT_MIRROR=http://mirrors.aliyun.com
# 2025-03-28 11:22:56 0.00B 定义构建参数
ARG TOOLS= cron ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap
# 2025-03-28 11:22:56 0.00B 定义构建参数
ARG DEPENDENCIES= libldap2-dev libx11-dev
# 2025-03-28 11:22:56 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.52MB 执行命令并创建新的镜像层
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' '@1742169600'
镜像信息
{
"Id": "sha256:ef8512b7d83a185d402d68bacd261849f4e50c0ef000a042d9d7bb3f70cb650f",
"RepoTags": [
"jumpserver/core:v4.8.1-ce",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core:v4.8.1-ce"
],
"RepoDigests": [
"jumpserver/core@sha256:548d6173c6b6be2b54219ebbd27db1e159aac12601c14c53e5475f0f7563d3b3",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core@sha256:6937314a98db64f753a06314db988c6ca14e024df58adc9fdd9714042abd4076"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-28T03:23:20.622057793Z",
"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": 861120261,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/a3e4c87f8dc24a058f3bb97316d61ee6f06f15dbcb53c851ca14230dcaa0d5e4/diff:/var/lib/docker/overlay2/88d7a82d5cc6fd6b8aeb916832ad2fedeb36be637a86df51c2171af8ca5c8b7c/diff:/var/lib/docker/overlay2/9136fb18745ec0b15151f00bb281e959eb9e3db316cf09f7b871142b41dc8ec5/diff:/var/lib/docker/overlay2/def599d9ce3e835f9c0989e7773dc6e94f929e022938d20bb8d99e6692ed41b6/diff:/var/lib/docker/overlay2/9f697ab425de8dcf45238a96783fa7decb64cdd92ffac7e86896b03ab374c677/diff:/var/lib/docker/overlay2/79e3cfae00cd540710fc41106e769fc33240a518c1ab5c7e7fa57c875423bd89/diff:/var/lib/docker/overlay2/3fad212ec0f51d563ffaa5c20cc69a244be42cfed83ee8c0cfb51f4b0590ca39/diff:/var/lib/docker/overlay2/8096870f745fb2df5735fd860f1ff12f62fba5d7c7bc84bdc364865710428254/diff",
"MergedDir": "/var/lib/docker/overlay2/284c0752677d572f4c4382a31c5134247a684cc53cb6bccac8b3b64c29ad8955/merged",
"UpperDir": "/var/lib/docker/overlay2/284c0752677d572f4c4382a31c5134247a684cc53cb6bccac8b3b64c29ad8955/diff",
"WorkDir": "/var/lib/docker/overlay2/284c0752677d572f4c4382a31c5134247a684cc53cb6bccac8b3b64c29ad8955/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:d215e887b4c2504dbfdf905627443999eb9b1bd29109ac636f9a534ff8bc9865",
"sha256:25f1473cc2e7ced1c5eac5327a4694440433d43a225cb206e511306202efbaa1",
"sha256:96664eb2a5b45742e258a20af8c59fcb5b37bb7c5d178a6ce5036aa59085d4ab",
"sha256:dcc664c1ba7ab8f8863c16e77a0015f984ed4914314f7869b6b7162ec2ee0416",
"sha256:136a7d14e9ce4638dba93aa98706263c72e86bd1a664055ec093ba2bf38dce05",
"sha256:b4d850999f0adba58b9c295aacdfda0121f06b6b0da115580d0a81f5e2935747",
"sha256:f9947df298beaf3350e9f200d73d68ebd2c19551f583bee3ec0d1ac0a94dfae6",
"sha256:d78206afcc02519c34c5ce68d31b5adab7de4fe9350829a3fca4fe19c6299389",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2025-03-29T19:11:46.611241161+08:00"
}
}