镜像构建历史
# 2024-12-05 17:37:38 0.00B 设置默认要执行的命令
CMD ["mitmproxy"]
# 2024-12-05 17:37:38 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{} 8081/tcp:{}]
# 2024-12-05 17:37:38 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["docker-entrypoint.sh"]
# 2024-12-05 17:37:38 498.00B 复制新文件或目录到容器中
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit
# 2024-12-05 17:37:38 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/home/mitmproxy/.mitmproxy]
# 2024-12-05 17:37:38 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c rm -rf /wheels # buildkit
# 2024-12-05 17:37:38 102.66MB 执行命令并创建新的镜像层
RUN /bin/sh -c pip install --no-index --find-links=/wheels mitmproxy # buildkit
# 2024-12-05 17:37:33 22.60MB 复制新文件或目录到容器中
COPY /wheels /wheels # buildkit
# 2024-12-05 17:37:12 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir /home/mitmproxy/.mitmproxy && chown mitmproxy:mitmproxy /home/mitmproxy/.mitmproxy # buildkit
# 2024-12-05 17:37:12 2.96MB 执行命令并创建新的镜像层
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gosu nano && rm -rf /var/lib/apt/lists/* # buildkit
# 2024-12-05 17:37:07 8.93KB 执行命令并创建新的镜像层
RUN /bin/sh -c useradd -mU mitmproxy # buildkit
# 2024-12-04 10:30:19 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-12-04 10:30:19 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 10:30:19 36.85MB 执行命令并创建新的镜像层
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 --version # buildkit
# 2024-12-04 10:30:19 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=9cf9427bee9e2242e3877dd0f6b641c1853ca461f39d6503ce260a59c80bf0d9
# 2024-12-04 10:30:19 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.13.1
# 2024-12-04 10:30:19 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2024-12-04 10:30:19 8.48MB 执行命令并创建新的镜像层
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 10:30:19 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-02 08:00:00 74.82MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1733097600'
镜像信息
{
"Id": "sha256:af9191f2ab21741e752a3d2ddfdc85da96bd864ecb6600c4de853c35f2635aa4",
"RepoTags": [
"mitmproxy/mitmproxy:11.0",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mitmproxy/mitmproxy:11.0"
],
"RepoDigests": [
"mitmproxy/mitmproxy@sha256:92ab9e0626ec73a3abae9c460e5475323f414745d7d0001205c8fa0c77ad31a2",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/mitmproxy/mitmproxy@sha256:fcef0f5a3dc5bdece51e829f2012034c3dc882b2fc479028b067ad47d270e2e7"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-05T09:37:38.480286526Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {},
"8081/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
"PYTHON_VERSION=3.13.1",
"PYTHON_SHA256=9cf9427bee9e2242e3877dd0f6b641c1853ca461f39d6503ce260a59c80bf0d9"
],
"Cmd": [
"mitmproxy"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/home/mitmproxy/.mitmproxy": {}
},
"WorkingDir": "",
"Entrypoint": [
"docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"org.opencontainers.image.created": "2024-12-05T09:36:59.629Z",
"org.opencontainers.image.description": "An interactive TLS-capable intercepting HTTP proxy for penetration testers and software developers.",
"org.opencontainers.image.licenses": "MIT",
"org.opencontainers.image.revision": "7d6f482b3f85163e5d8f003932fbbcc71993bcb8",
"org.opencontainers.image.source": "https://github.com/mitmproxy/mitmproxy",
"org.opencontainers.image.title": "mitmproxy",
"org.opencontainers.image.url": "https://github.com/mitmproxy/mitmproxy",
"org.opencontainers.image.version": "11.0.2"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 248380736,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/f37d88e89c7b3940125289b682fd3379b5682da8a61c3a209745dccd2e0304f8/diff:/var/lib/docker/overlay2/2411d44f27ba310c5e5fedd0af3c6d0c95ea0c65aad5871bd07e0704eb81dcbd/diff:/var/lib/docker/overlay2/a3f18ea15c348fa68c57b6713ea4ff67b5dbce617da8afe14ece9cb55ff1a418/diff:/var/lib/docker/overlay2/6e6c7a87c476baa787937787e9b6d260e33ba2790f19e1249fc272535594722e/diff:/var/lib/docker/overlay2/7537736923ed23745446f0e00af35fc2b7d4c3810016905c08cc04d9f80d9729/diff:/var/lib/docker/overlay2/ce72d29e164062ccc89030ad0e94626236b461c08efd03bcf1bdd349537854cc/diff:/var/lib/docker/overlay2/53e1acf1a64b9b62d50418f22c1111c9b504efff0105c7c70d564b8e427f79c0/diff:/var/lib/docker/overlay2/8e729d50746275f1f5d2eff902f37d07ec1609c666dc98e7b0f7f0785e8e7efe/diff:/var/lib/docker/overlay2/1084463be3ba8d173c09d5be0c6b6d0fb3d72da2681783dd17264d43714a20a1/diff:/var/lib/docker/overlay2/404e59c4c9adc52232d40ea19adf6c8d76b2fc9392dc54e49d9840bbd9ffc580/diff",
"MergedDir": "/var/lib/docker/overlay2/8fa55d666abd519fd7e141ed4b248b91cecce2e97cf7ad5ccf0889eb705c2fc2/merged",
"UpperDir": "/var/lib/docker/overlay2/8fa55d666abd519fd7e141ed4b248b91cecce2e97cf7ad5ccf0889eb705c2fc2/diff",
"WorkDir": "/var/lib/docker/overlay2/8fa55d666abd519fd7e141ed4b248b91cecce2e97cf7ad5ccf0889eb705c2fc2/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c0f1022b22a9b36851b358f44e5475e39d166e71a8073cf53c894a299239b1c5",
"sha256:68f0d792f32800eb2ae5d8313eb9ad0695c65ad7609355425e48fc0aa3c2bc2e",
"sha256:4cf27e2fa7c50611b17806af9c8a4b69bf7d0ca9f4b46d2b634e4f59fefc5ed0",
"sha256:923b5c9fb83a31a220db35f11674fd20669cf734a8a3bedbb0a5ea32d212dfbb",
"sha256:2e3b175fc824d462f731ea224d3de93e0ad1c645d3dbda76428e67e8095abc66",
"sha256:fb5f30706012e225175aea86a2894804f679384f9e4fb08c4bd33edeb2e459c7",
"sha256:d0300fd1371e8268713bb980b661a42b9f489b7bcce11726fa240b15d164589d",
"sha256:d7925afaff0013563c01fa9f64acb37bea131bff6204b4eeb2ec6a7c30af72fb",
"sha256:e8c43b765b26484e9afa6cffeda61637cef326a5a1bf1073ae90a1b764c9dc64",
"sha256:c65d1a9c583375074076ee76b34f11270075440f80420a90ee26ce95c8d360b0",
"sha256:0e7f0d7a6354b3f888a154ab207d3ea26ac60a133146d0b58d07c33fa7f67442"
]
},
"Metadata": {
"LastTagTime": "2024-12-11T16:15:00.336076071+08:00"
}
}