镜像构建历史
# 2024-11-27 12:27:42 0.00B 设置默认要执行的命令
CMD ["bash" "start.sh"]
# 2024-11-27 12:27:42 0.00B 设置环境变量 DOCKER
ENV DOCKER=true
# 2024-11-27 12:27:42 0.00B 设置环境变量 WEBUI_BUILD_VERSION
ENV WEBUI_BUILD_VERSION=0a26c41c7b58300f37348ba580a4f0d682ca5fbd
# 2024-11-27 12:27:42 0.00B 定义构建参数
ARG BUILD_HASH=0a26c41c7b58300f37348ba580a4f0d682ca5fbd
# 2024-11-27 12:27:42 0.00B 指定运行容器时使用的用户
USER 0:0
# 2024-11-27 12:27:42 0.00B 指定检查容器健康状态的命令
HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1"] "0s" "0s" "0s" "0s" '\x00'}
# 2024-11-27 12:27:42 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2024-11-27 12:27:42 65.62MB 复制新文件或目录到容器中
COPY --chown=0:0 ./backend . # buildkit
# 2024-11-27 12:27:42 3.61KB 复制新文件或目录到容器中
COPY --chown=0:0 /app/package.json /app/package.json # buildkit
# 2024-11-27 12:27:42 100.52KB 复制新文件或目录到容器中
COPY --chown=0:0 /app/CHANGELOG.md /app/CHANGELOG.md # buildkit
# 2024-11-27 12:27:42 216.55MB 复制新文件或目录到容器中
COPY --chown=0:0 /app/build /app/build # buildkit
# 2024-11-26 18:06:52 2.78GB 执行命令并创建新的镜像层
RUN |7 USE_CUDA=false USE_OLLAMA=false USE_CUDA_VER=cu121 USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL= UID=0 GID=0 /bin/sh -c pip3 install uv && if [ "$USE_CUDA" = "true" ]; then pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$USE_CUDA_DOCKER_VER --no-cache-dir && uv pip install --system -r requirements.txt --no-cache-dir && python -c "import os; from sentence_transformers import SentenceTransformer; SentenceTransformer(os.environ['RAG_EMBEDDING_MODEL'], device='cpu')" && python -c "import os; from faster_whisper import WhisperModel; WhisperModel(os.environ['WHISPER_MODEL'], device='cpu', compute_type='int8', download_root=os.environ['WHISPER_MODEL_DIR'])"; python -c "import os; import tiktoken; tiktoken.get_encoding(os.environ['TIKTOKEN_ENCODING_NAME'])"; else pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu --no-cache-dir && uv pip install --system -r requirements.txt --no-cache-dir && python -c "import os; from sentence_transformers import SentenceTransformer; SentenceTransformer(os.environ['RAG_EMBEDDING_MODEL'], device='cpu')" && python -c "import os; from faster_whisper import WhisperModel; WhisperModel(os.environ['WHISPER_MODEL'], device='cpu', compute_type='int8', download_root=os.environ['WHISPER_MODEL_DIR'])"; python -c "import os; import tiktoken; tiktoken.get_encoding(os.environ['TIKTOKEN_ENCODING_NAME'])"; fi; chown -R $UID:$GID /app/backend/data/ # buildkit
# 2024-11-26 18:05:37 1.42KB 复制新文件或目录到容器中
COPY --chown=0:0 ./backend/requirements.txt ./requirements.txt # buildkit
# 2024-11-20 06:35:58 1.02GB 执行命令并创建新的镜像层
RUN |7 USE_CUDA=false USE_OLLAMA=false USE_CUDA_VER=cu121 USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL= UID=0 GID=0 /bin/sh -c if [ "$USE_OLLAMA" = "true" ]; then apt-get update && apt-get install -y --no-install-recommends git build-essential pandoc netcat-openbsd curl && apt-get install -y --no-install-recommends gcc python3-dev && apt-get install -y --no-install-recommends ffmpeg libsm6 libxext6 && apt-get install -y --no-install-recommends curl jq && curl -fsSL https://ollama.com/install.sh | sh && rm -rf /var/lib/apt/lists/*; else apt-get update && apt-get install -y --no-install-recommends git build-essential pandoc gcc netcat-openbsd curl jq && apt-get install -y --no-install-recommends gcc python3-dev && apt-get install -y --no-install-recommends ffmpeg libsm6 libxext6 && rm -rf /var/lib/apt/lists/*; fi # buildkit
# 2024-11-20 06:35:16 0.00B 执行命令并创建新的镜像层
RUN |7 USE_CUDA=false USE_OLLAMA=false USE_CUDA_VER=cu121 USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL= UID=0 GID=0 /bin/sh -c chown -R $UID:$GID /app $HOME # buildkit
# 2024-11-20 06:35:16 36.00B 执行命令并创建新的镜像层
RUN |7 USE_CUDA=false USE_OLLAMA=false USE_CUDA_VER=cu121 USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL= UID=0 GID=0 /bin/sh -c echo -n 00000000-0000-0000-0000-000000000000 > $HOME/.cache/chroma/telemetry_user_id # buildkit
# 2024-11-20 06:35:16 0.00B 执行命令并创建新的镜像层
RUN |7 USE_CUDA=false USE_OLLAMA=false USE_CUDA_VER=cu121 USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL= UID=0 GID=0 /bin/sh -c mkdir -p $HOME/.cache/chroma # buildkit
# 2024-11-20 06:35:16 0.00B 执行命令并创建新的镜像层
RUN |7 USE_CUDA=false USE_OLLAMA=false USE_CUDA_VER=cu121 USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL= UID=0 GID=0 /bin/sh -c if [ $UID -ne 0 ]; then if [ $GID -ne 0 ]; then addgroup --gid $GID app; fi; adduser --uid $UID --gid $GID --home $HOME --disabled-password --no-create-home app; fi # buildkit
# 2024-11-20 06:35:16 0.00B 设置环境变量 HOME
ENV HOME=/root
# 2024-11-20 06:35:16 0.00B 设置工作目录为/app/backend
WORKDIR /app/backend
# 2024-11-20 06:35:16 0.00B 设置环境变量 HF_HOME
ENV HF_HOME=/app/backend/data/cache/embedding/models
# 2024-11-20 06:35:16 0.00B 设置环境变量 TIKTOKEN_ENCODING_NAME TIKTOKEN_CACHE_DIR
ENV TIKTOKEN_ENCODING_NAME=cl100k_base TIKTOKEN_CACHE_DIR=/app/backend/data/cache/tiktoken
# 2024-11-20 06:35:16 0.00B 设置环境变量 RAG_EMBEDDING_MODEL RAG_RERANKING_MODEL SENTENCE_TRANSFORMERS_HOME
ENV RAG_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2 RAG_RERANKING_MODEL= SENTENCE_TRANSFORMERS_HOME=/app/backend/data/cache/embedding/models
# 2024-11-20 06:35:16 0.00B 设置环境变量 WHISPER_MODEL WHISPER_MODEL_DIR
ENV WHISPER_MODEL=base WHISPER_MODEL_DIR=/app/backend/data/cache/whisper/models
# 2024-11-20 06:35:16 0.00B 设置环境变量 OPENAI_API_KEY WEBUI_SECRET_KEY SCARF_NO_ANALYTICS DO_NOT_TRACK ANONYMIZED_TELEMETRY
ENV OPENAI_API_KEY= WEBUI_SECRET_KEY= SCARF_NO_ANALYTICS=true DO_NOT_TRACK=true ANONYMIZED_TELEMETRY=false
# 2024-11-20 06:35:16 0.00B 设置环境变量 OLLAMA_BASE_URL OPENAI_API_BASE_URL
ENV OLLAMA_BASE_URL=/ollama OPENAI_API_BASE_URL=
# 2024-11-20 06:35:16 0.00B 设置环境变量 ENV PORT USE_OLLAMA_DOCKER USE_CUDA_DOCKER USE_CUDA_DOCKER_VER USE_EMBEDDING_MODEL_DOCKER USE_RERANKING_MODEL_DOCKER
ENV ENV=prod PORT=8080 USE_OLLAMA_DOCKER=false USE_CUDA_DOCKER=false USE_CUDA_DOCKER_VER=cu121 USE_EMBEDDING_MODEL_DOCKER=sentence-transformers/all-MiniLM-L6-v2 USE_RERANKING_MODEL_DOCKER=
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG GID=0
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG UID=0
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG USE_RERANKING_MODEL=
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG USE_CUDA_VER=cu121
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG USE_OLLAMA=false
# 2024-11-20 06:35:16 0.00B 定义构建参数
ARG USE_CUDA=false
# 2024-10-19 07:23:40 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-10-19 07:23:40 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-10-19 07:23:40 45.79MB 执行命令并创建新的镜像层
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-10-19 07:23:40 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372
# 2024-10-19 07:23:40 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.10
# 2024-10-19 07:23:40 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-10-19 07:23:40 9.24MB 执行命令并创建新的镜像层
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-10-19 07:23:40 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-10-19 07:23:40 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-10-19 07:23:40 0.00B 设置默认要执行的命令
CMD ["bash"]
# 2024-10-19 07:23:40 74.78MB 复制文件或目录到容器中
ADD rootfs.tar.xz / # buildkit
镜像信息
{
"Id": "sha256:44627e8349fbf5498ad4779420660c0ff67ee3d5e885fe1ec38e0a6541d893c7",
"RepoTags": [
"ghcr.io/open-webui/open-webui:v0.4.6",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/open-webui/open-webui:v0.4.6"
],
"RepoDigests": [
"ghcr.io/open-webui/open-webui@sha256:01fe71e722088474496064ff781631698898cd9cbf37a7a7a7a89da3e3dc975e",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/open-webui/open-webui@sha256:785985e03753cc19cea5b279fdce52dde056023e3a73d02a243af4bddfb32a7a"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-11-27T04:27:42.85317486Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "0:0",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {}
},
"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.11.10",
"PYTHON_SHA256=07a4356e912900e61a15cb0949a06c4a05012e213ecd6b4e84d0f67aabbee372",
"ENV=prod",
"PORT=8080",
"USE_OLLAMA_DOCKER=false",
"USE_CUDA_DOCKER=false",
"USE_CUDA_DOCKER_VER=cu121",
"USE_EMBEDDING_MODEL_DOCKER=sentence-transformers/all-MiniLM-L6-v2",
"USE_RERANKING_MODEL_DOCKER=",
"OLLAMA_BASE_URL=/ollama",
"OPENAI_API_BASE_URL=",
"OPENAI_API_KEY=",
"WEBUI_SECRET_KEY=",
"SCARF_NO_ANALYTICS=true",
"DO_NOT_TRACK=true",
"ANONYMIZED_TELEMETRY=false",
"WHISPER_MODEL=base",
"WHISPER_MODEL_DIR=/app/backend/data/cache/whisper/models",
"RAG_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2",
"RAG_RERANKING_MODEL=",
"SENTENCE_TRANSFORMERS_HOME=/app/backend/data/cache/embedding/models",
"TIKTOKEN_ENCODING_NAME=cl100k_base",
"TIKTOKEN_CACHE_DIR=/app/backend/data/cache/tiktoken",
"HF_HOME=/app/backend/data/cache/embedding/models",
"HOME=/root",
"WEBUI_BUILD_VERSION=0a26c41c7b58300f37348ba580a4f0d682ca5fbd",
"DOCKER=true"
],
"Cmd": [
"bash",
"start.sh"
],
"Healthcheck": {
"Test": [
"CMD-SHELL",
"curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1"
]
},
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/app/backend",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"org.opencontainers.image.created": "2024-11-27T04:25:15.061Z",
"org.opencontainers.image.description": "User-friendly AI Interface (Supports Ollama, OpenAI API, ...)",
"org.opencontainers.image.licenses": "MIT",
"org.opencontainers.image.revision": "0a26c41c7b58300f37348ba580a4f0d682ca5fbd",
"org.opencontainers.image.source": "https://github.com/open-webui/open-webui",
"org.opencontainers.image.title": "open-webui",
"org.opencontainers.image.url": "https://github.com/open-webui/open-webui",
"org.opencontainers.image.version": "0.4.6"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 4218333247,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/9862a473284776466f542a1ffb48f5a3fb93dc970385f77d8003d198e8384ae9/diff:/var/lib/docker/overlay2/ccfd3e00db8d83e13baf956da40cf01b74dd5ec5d843cb458a3a774c0d784cfd/diff:/var/lib/docker/overlay2/a226df99366834d99427b28ddc117bbae45444ca8d601281fbb201710c718790/diff:/var/lib/docker/overlay2/7e5d3691ef1c344424bac4efabbb59ae2bc16849dd76a32c5b39e2a82cad4ee1/diff:/var/lib/docker/overlay2/27cd9887f6ca5dfa18ad62c2bcbe9da7abf52e33e379e37b10d8b9252af76171/diff:/var/lib/docker/overlay2/7b7c9ca9afdb59be98966e5c2d5deb5902cfd8481308a24de79ee16b6df51e16/diff:/var/lib/docker/overlay2/bbfd86688000be4d88909a85712d730038401296e95f2816f717c64939db96e9/diff:/var/lib/docker/overlay2/5d7f160a9517a73d2f893caabea187b4fe4a18d6fd0fb3ed2f4b867185ea856d/diff:/var/lib/docker/overlay2/0371479a0b7c27fd331e3b5a01c04b98fe632be66c21143d42dcc1400affcffe/diff:/var/lib/docker/overlay2/1b1706a6145c4c3558812cdce659ea569044857b10912b5fc2d666e7431c44f4/diff:/var/lib/docker/overlay2/57abf6e854e8ea9a1666600b97fe09674580fd1080fd3fbaa215c641aefd1e2a/diff:/var/lib/docker/overlay2/dd69030d20ac6d3d0f9f8e30b7b7a727a37089ff1a17b093b3d61c24819fea7c/diff:/var/lib/docker/overlay2/87b3cf57ef2287f51509ef99131706e86cd0ce6b6dc767e7167c8699c3c6b689/diff:/var/lib/docker/overlay2/bc9974a3c6be591ca01a33e770d45952d1d84f252bfdd2f7422f80821a33e572/diff:/var/lib/docker/overlay2/91eaeb3375babd906dc7e8a6c516620560ab7dbfb21b9881f9ae71d2e2f398b0/diff",
"MergedDir": "/var/lib/docker/overlay2/de4e8230a76fcad269d29e8fffdccdab02b253102028178cc96c753887807778/merged",
"UpperDir": "/var/lib/docker/overlay2/de4e8230a76fcad269d29e8fffdccdab02b253102028178cc96c753887807778/diff",
"WorkDir": "/var/lib/docker/overlay2/de4e8230a76fcad269d29e8fffdccdab02b253102028178cc96c753887807778/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c3548211b8264f8bfa47a6727043a64f1791b82ac965a284a7ea187e971a95e2",
"sha256:2440dc0bfce0be50901996dd0de04d2830062f2b2e63a73217fd9237e18c9b7c",
"sha256:25b72b8029f800d4047ffbfc4017258ab87699d0e84084290fc35b89aef1391e",
"sha256:bb4412c1f640a563d7a796fb752395399c529bfd06fa9c451b980b5ee5807d40",
"sha256:c63949ef1d060788acd8665541523a0d24d53ee07f66f1406e02f654fbd15579",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:abdc6ab388a03e69782c27f67a1342ce038393674b4e057db31e36ab2cbd47cc",
"sha256:03168ea5e0480c8f77f377f30160b25b2c551a58ead614376bf8f98b352030ee",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:84f08b88eb56367c394789fe256b5fb35b85dab4aee9d1502a0e560f32512ed8",
"sha256:db4e728eaa9b61980c50f9752a89fd845e57ca90e0846777ed10dead84a65842",
"sha256:b30e211b709ff16c1dc7fb2c7ffab2d4780ffbc23d04d126754e0405d8dc042b",
"sha256:675e79ba042546fcf148c4e666bf5392a9d6a0349ebbe79ad0d301c193f07a59",
"sha256:2b9442292fa598bf266d87d04b66539aa1a7012e7024501a828f0a34d5bd552a",
"sha256:2c77ad7113c616c43af739e541695eb659c8371b4f249e0d3c9a4fbba379bf71",
"sha256:4453ca3af022e9d9e52a69f75b15ba6f8d7350eb195584a377610b4445e4e005"
]
},
"Metadata": {
"LastTagTime": "2024-11-27T16:49:14.063809469+08:00"
}
}