镜像构建历史
# 2024-10-17 12:51:42 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/main"]
# 2024-10-17 12:51:42 314.37MB 执行命令并创建新的镜像层
RUN /bin/sh -c chmod +x /main /env && pip3 install --no-cache-dir httpx==0.27.2 requests==2.32.3 jinja2==3.0.3 PySocks httpx[socks] && wget -O /opt/node-v20.11.1-linux-arm64.tar.xz https://npmmirror.com/mirrors/node/v20.11.1/node-v20.11.1-linux-arm64.tar.xz && tar -xvf /opt/node-v20.11.1-linux-arm64.tar.xz -C /opt && ln -s /opt/node-v20.11.1-linux-arm64/bin/node /usr/local/bin/node && rm -f /opt/node-v20.11.1-linux-arm64.tar.xz && /env && rm -f /env # buildkit
# 2024-10-17 12:51:12 0.00B 复制新文件或目录到容器中
COPY dependencies/python-requirements.txt /dependencies/python-requirements.txt # buildkit
# 2024-10-17 12:51:12 416.00B 复制新文件或目录到容器中
COPY conf/config.yaml /conf/config.yaml # buildkit
# 2024-10-17 12:51:12 3.74MB 复制新文件或目录到容器中
COPY env /env # buildkit
# 2024-10-17 12:51:12 41.03MB 复制新文件或目录到容器中
COPY main /main # buildkit
# 2024-10-17 12:51:11 114.25MB 执行命令并创建新的镜像层
RUN /bin/sh -c echo "deb http://deb.debian.org/debian testing main" > /etc/apt/sources.list && apt-get update && apt-get install -y --no-install-recommends pkg-config libseccomp-dev wget curl xz-utils zlib1g=1:1.3.dfsg+really1.3.1-1 expat=2.6.3-1 perl=5.38.2-5 libsqlite3-0=3.46.0-1 && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
# 2024-09-10 01:16:05 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-09-10 01:16:05 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-09-10 01:16:05 46.58MB 执行命令并创建新的镜像层
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 --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:-}" "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/*; 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-09-10 01:16:05 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.10.15
# 2024-09-10 01:16:05 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-09-10 01:16:05 9.17MB 执行命令并创建新的镜像层
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-09-10 01:16:05 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-09-10 01:16:05 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-09-10 01:16:05 0.00B
/bin/sh -c #(nop) CMD ["bash"]
# 2024-09-10 01:16:05 97.11MB
/bin/sh -c #(nop) ADD file:28df1cb6a6576d40b5226851d0a6a76ffd5d1c94644ee441490b74a90f29f425 in /
镜像信息
{
"Id": "sha256:e09eb1619e460ef111fac881b6a98c3354f237d117eb2cdbec937fe9a9ee06a4",
"RepoTags": [
"langgenius/dify-sandbox:0.2.10",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/langgenius/dify-sandbox:0.2.10-linuxarm64"
],
"RepoDigests": [
"langgenius/dify-sandbox@sha256:6c69b6e379255d5865dd9ac25b588942dc4a7a5e8f57afcf736080414459e8dd",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/langgenius/dify-sandbox@sha256:e6b15a704d4fe04b3c653e96af33ddfe902c5aa70595f48aec5d98df6e5d4ea6"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-10-17T04:51:42.23172363Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_VERSION=3.10.15"
],
"Cmd": null,
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/main"
],
"OnBuild": null,
"Labels": null
},
"Architecture": "arm64",
"Os": "linux",
"Size": 626246984,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8d81dca49e625b5355d8635eb77ded4ddae8e604f49d81a58ed02a641eefe0fb/diff:/var/lib/docker/overlay2/1614e19be0b35f523cdf9c5fa222cca62cb8f50ab1988fda7f811a8e4f1a013d/diff:/var/lib/docker/overlay2/ffbc425459a2a0ee076d26697fc20bf30ecf2c140edf5d335da503022b20371f/diff:/var/lib/docker/overlay2/855c414a527934e2c3ee92536bb37b89d91c66c615284cd94e01c10df6f2c95b/diff:/var/lib/docker/overlay2/fbd2de64b1ac146d191ac6865e7c23c06cdab72f79a2a446d272b7abe27fe843/diff:/var/lib/docker/overlay2/97fb293272281f652eafb2c4836fceb012d376f8e6ceb089b7d56aa6bef5c515/diff:/var/lib/docker/overlay2/6ed04bc5975410bb65fc56d74064c4473d36c7bc270f19da567f484807d849df/diff:/var/lib/docker/overlay2/e633bb764899d6e4255d1648ff54dd26fdf0b892702cbc660668c047e1f835e5/diff:/var/lib/docker/overlay2/750a29ccde8ac62d12f2473a97d76ae967b0b3aaedb81e616b1d4c8fca8dc9ac/diff",
"MergedDir": "/var/lib/docker/overlay2/818eceeb2a1e6c75a982324235dcaaf24a1434923010bb4aa313789a47c617fe/merged",
"UpperDir": "/var/lib/docker/overlay2/818eceeb2a1e6c75a982324235dcaaf24a1434923010bb4aa313789a47c617fe/diff",
"WorkDir": "/var/lib/docker/overlay2/818eceeb2a1e6c75a982324235dcaaf24a1434923010bb4aa313789a47c617fe/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:054df1200f3e1d70e2ebeafa03c965d0dd34e7dab90b4ea24963352e5590b573",
"sha256:01183e0d6e038c10d9713a231659675a52e92ec5b3c95304a03eba3933a0dd84",
"sha256:787246ee5c7b4fcf334997823c9df23d456ae759a0e9b95735c5085830e75a84",
"sha256:864eb10b305911d7c04872ad21d6c4386faae367feccf2fd511e67414e74408c",
"sha256:f01f4b48f2d646b493f550444a1cd7b73e33fd77bd874113c4cf75d286495723",
"sha256:5c412ac0f213b5804e901d328b0725e1239a0c122f75c9a6b75acc0cc4e6fac5",
"sha256:86c75815e19ce37a382d0c77583906f3630f528cf5166ee2554bee1d198e7061",
"sha256:272b481cd3cbe72236b163d694ccbb4856b574c495ba44bc3c8416bfe60bf54f",
"sha256:40415cc8721b0b5cc6dbff759f4f9cece2fdff0e2a6f5ef3d6921e4442437679",
"sha256:c758030316af4854e80a8d9a5ebc99ed77a2cf1301868b75b0a8e62b715f1848"
]
},
"Metadata": {
"LastTagTime": "2024-12-09T11:05:03.988172025+08:00"
}
}