镜像构建历史
# 2025-11-28 15:31:31 0.00B 设置默认要执行的命令
CMD ["uv" "run" "uvicorn" "graph_service.main:app" "--host" "0.0.0.0" "--port" "8000"]
# 2025-11-28 15:31:31 0.00B 声明容器运行时监听的端口
EXPOSE map[8000/tcp:{}]
# 2025-11-28 15:31:31 0.00B 设置环境变量 PORT
ENV PORT=8000
# 2025-11-28 15:31:31 0.00B 指定运行容器时使用的用户
USER app
# 2025-11-28 15:31:31 0.00B 设置环境变量 PYTHONUNBUFFERED PATH
ENV PYTHONUNBUFFERED=1 PATH=/app/.venv/bin:/root/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-11-28 15:31:31 97.06MB 执行命令并创建新的镜像层
RUN |4 GRAPHITI_VERSION= BUILD_DATE= VCS_REF= INSTALL_FALKORDB=false /bin/sh -c chown -R app:app /app # buildkit
# 2025-11-28 15:31:28 204.80MB 执行命令并创建新的镜像层
RUN |4 GRAPHITI_VERSION= BUILD_DATE= VCS_REF= INSTALL_FALKORDB=false /bin/sh -c uv sync --frozen --no-dev && if [ -n "$GRAPHITI_VERSION" ]; then if [ "$INSTALL_FALKORDB" = "true" ]; then uv pip install --system --upgrade "graphiti-core[falkordb]==$GRAPHITI_VERSION"; else uv pip install --system --upgrade "graphiti-core==$GRAPHITI_VERSION"; fi; else if [ "$INSTALL_FALKORDB" = "true" ]; then uv pip install --system --upgrade "graphiti-core[falkordb]"; else uv pip install --system --upgrade graphiti-core; fi; fi # buildkit
# 2025-11-28 15:31:21 0.00B 定义构建参数
ARG INSTALL_FALKORDB=false
# 2025-11-28 15:31:21 13.87KB 复制新文件或目录到容器中
COPY ./server/graph_service ./graph_service # buildkit
# 2025-11-28 15:31:21 171.49KB 复制新文件或目录到容器中
COPY ./server/pyproject.toml ./server/README.md ./server/uv.lock ./ # buildkit
# 2025-11-28 15:31:21 0.00B 设置工作目录为/app
WORKDIR /app
# 2025-11-28 15:31:21 4.29KB 执行命令并创建新的镜像层
RUN |3 GRAPHITI_VERSION= BUILD_DATE= VCS_REF= /bin/sh -c groupadd -r app && useradd -r -d /app -g app app # buildkit
# 2025-11-28 15:31:21 0.00B 设置环境变量 UV_COMPILE_BYTECODE UV_LINK_MODE UV_PYTHON_DOWNLOADS
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON_DOWNLOADS=never
# 2025-11-28 15:31:21 0.00B 设置环境变量 PATH
ENV PATH=/root/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-11-28 15:31:21 54.27MB 执行命令并创建新的镜像层
RUN |3 GRAPHITI_VERSION= BUILD_DATE= VCS_REF= /bin/sh -c sh /uv-installer.sh && rm /uv-installer.sh # buildkit
# 2025-11-28 15:31:20 65.99KB 复制文件或目录到容器中
ADD https://astral.sh/uv/install.sh /uv-installer.sh # buildkit
# 2025-11-28 15:31:20 12.81MB 执行命令并创建新的镜像层
RUN |3 GRAPHITI_VERSION= BUILD_DATE= VCS_REF= /bin/sh -c apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL io.graphiti.core.version=
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.documentation=https://github.com/getzep/graphiti/tree/main/server
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.source=https://github.com/getzep/graphiti
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.vendor=Zep AI
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.revision=
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.created=
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.version=
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.description=FastAPI server for Graphiti temporal knowledge graphs
# 2025-11-28 15:31:20 0.00B 添加元数据标签
LABEL org.opencontainers.image.title=Graphiti FastAPI Server
# 2025-11-28 15:31:20 0.00B 定义构建参数
ARG VCS_REF
# 2025-11-28 15:31:20 0.00B 定义构建参数
ARG BUILD_DATE
# 2025-11-28 15:31:20 0.00B 定义构建参数
ARG GRAPHITI_VERSION
# 2025-11-18 13:58:20 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2025-11-18 13:58:20 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
# 2025-11-18 13:58:20 36.75MB 执行命令并创建新的镜像层
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 $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; 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 -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
# 2025-11-18 13:49:42 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=fb85a13414b028c49ba18bbd523c2d055a30b56b18b92ce454ea2c51edc656c4
# 2025-11-18 13:49:42 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.12.12
# 2025-11-18 13:49:42 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
# 2025-11-18 13:49:42 3.81MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit
# 2025-11-18 13:49:42 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2025-11-18 13:49:42 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-11-17 08:00:00 78.62MB
# debian.sh --arch 'amd64' out/ 'trixie' '@1763337600'
镜像信息
{
"Id": "sha256:51026f5062998926e41a79f57388b1e319ea74b1edf0df566c240780611989cb",
"RepoTags": [
"kejod15117/graphiti:latest",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kejod15117/graphiti:latest"
],
"RepoDigests": [
"kejod15117/graphiti@sha256:b2dc42ce3ede3be1bb163a0ec7a03b597b5de71e8b9f40acdff02102815e08c5",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/kejod15117/graphiti@sha256:1e08065b21c7304340e869b0637bc4e1d8a0557af9aa90a20c382472f5210b78"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-11-28T07:31:31.29955707Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "app",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8000/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/app/.venv/bin:/root/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=C.UTF-8",
"GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
"PYTHON_VERSION=3.12.12",
"PYTHON_SHA256=fb85a13414b028c49ba18bbd523c2d055a30b56b18b92ce454ea2c51edc656c4",
"UV_COMPILE_BYTECODE=1",
"UV_LINK_MODE=copy",
"UV_PYTHON_DOWNLOADS=never",
"PYTHONUNBUFFERED=1",
"PORT=8000"
],
"Cmd": [
"uv",
"run",
"uvicorn",
"graph_service.main:app",
"--host",
"0.0.0.0",
"--port",
"8000"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/app",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"io.graphiti.core.version": "",
"org.opencontainers.image.created": "2025-11-28T07:31:11.512Z",
"org.opencontainers.image.description": "Build Real-Time Knowledge Graphs for AI Agents",
"org.opencontainers.image.documentation": "https://github.com/getzep/graphiti/tree/main/server",
"org.opencontainers.image.licenses": "Apache-2.0",
"org.opencontainers.image.revision": "08e78efde8fcec171cd99bd8aa8da936e1825f63",
"org.opencontainers.image.source": "https://github.com/ZhReimu/graphiti",
"org.opencontainers.image.title": "graphiti",
"org.opencontainers.image.url": "https://github.com/ZhReimu/graphiti",
"org.opencontainers.image.vendor": "Zep AI",
"org.opencontainers.image.version": "latest"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 488365672,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/d9d7b23e12143b10b774da083602be68f09d33c2d0c2b0f58ddb98405582670f/diff:/var/lib/docker/overlay2/dbf01bcb1f5e3b3cc3061cd1c5acce1d8cc0faaba06159a080d60fa294a31b9f/diff:/var/lib/docker/overlay2/dad7c944defdc0f6da60953daf0cea713865061e2c9c9d43de9d7bc3026bf41c/diff:/var/lib/docker/overlay2/b8706a875199d46d4c2fcc20a3855911ee7c74fa62184c14796f85154bbc5f16/diff:/var/lib/docker/overlay2/cf5e30d362276b396ce9a5a2600cb76d9f7a60f1e4d2aae312a027b595ce05a7/diff:/var/lib/docker/overlay2/bb054519f6b21f6161c91e3aec75061a672fac0ebf00ac1585bb1ac8d40c990b/diff:/var/lib/docker/overlay2/f4d27e01479a5005a5a411c637dea6b48256aaa6b146eff15f42f6ca082d1acd/diff:/var/lib/docker/overlay2/bd166e006920590bb2a25985869912fbaac37b2811da4f83b44726f1b1ade7f1/diff:/var/lib/docker/overlay2/e63b00900b86cb64553d9c3cb409ad1aec244ef39cf6d7d28b576db1624274d5/diff:/var/lib/docker/overlay2/938f8cacb3fe6502e07e7c3ee69cd1149aef07b9991c46ecb201fdeb52dc9058/diff:/var/lib/docker/overlay2/b132b79377aa14dc89b94fb15138aeb3624f833085252eb61b8ec159a2123d2c/diff:/var/lib/docker/overlay2/d00adf6575e12ca74960f41d6ac1272c63fc6703696c336b526acde370dda7c3/diff",
"MergedDir": "/var/lib/docker/overlay2/fe83bff85786f45bb11567362bf7d245b8bdbdad1cb11fcce86caec6047c5f8a/merged",
"UpperDir": "/var/lib/docker/overlay2/fe83bff85786f45bb11567362bf7d245b8bdbdad1cb11fcce86caec6047c5f8a/diff",
"WorkDir": "/var/lib/docker/overlay2/fe83bff85786f45bb11567362bf7d245b8bdbdad1cb11fcce86caec6047c5f8a/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:70a290c5e58b68f39496ab93a62f21b8b2ca0502e97905131838de1b39a37cbb",
"sha256:ae5637ef40a1f05635c94c972959f0b21ed1120dbcfa4bc8ef9f8ae771b58d0b",
"sha256:9c895a85998d9520762f24ae911a6fc978deb7aba8a107a7332509fd1d37b138",
"sha256:e269231b9601ce7d6942e0a22164f1fbbbfbcb2cba6d89da875f151713921171",
"sha256:afce32aa95b841672c79b78d4a542aeb367085ddc3b5b3b3be289b47558fd001",
"sha256:f650bee157e49960a6c3967416dbd7558817c0740139bb1342c941782040c722",
"sha256:04d241512047033e5e058393f6c8e4947a010b6fae0cc6e3880f0fe98f1aba18",
"sha256:f95a7ca7b75228de7b4a8d034ad08011c34aec4cf2ef853c691cafb3dbc223a9",
"sha256:0b464ad9bfe63e62f715cfec84729d054ee645193fda0789d34064c9cf0b8343",
"sha256:270020e1bceffb935c04264b8c71ba18d6f28f9de4b7b06ad0676e6da9a3327a",
"sha256:3296dc19d31838faebe96800925bd68533f72cf945df6a5a3b91ffc0bf2ace20",
"sha256:195b5d92831a736ed5477776c8762d31c49732bca2673d56e7c5b3c67b2adeeb",
"sha256:0005f524dff44d417f98ac3f97bd42d6df46ba3aaa36bb4374667eba09132d63"
]
},
"Metadata": {
"LastTagTime": "2025-11-28T15:41:49.453513392+08:00"
}
}