镜像构建历史
# 2024-12-07 16:45:40 0.00B 设置默认要执行的命令
CMD ["bash" "start.sh"]
# 2024-12-07 16:45:40 0.00B 设置环境变量 DOCKER
ENV DOCKER=true
# 2024-12-07 16:45:40 0.00B 设置环境变量 WEBUI_BUILD_VERSION
ENV WEBUI_BUILD_VERSION=29a271959556743e6deb4d55a5a982983335d7ab
# 2024-12-07 16:45:40 0.00B 定义构建参数
ARG BUILD_HASH=29a271959556743e6deb4d55a5a982983335d7ab
# 2024-12-07 16:45:40 0.00B 指定运行容器时使用的用户
USER 0:0
# 2024-12-07 16:45:40 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-12-07 16:45:40 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2024-12-07 16:45:40 65.63MB 复制新文件或目录到容器中
COPY --chown=0:0 ./backend . # buildkit
# 2024-12-07 16:45:40 3.61KB 复制新文件或目录到容器中
COPY --chown=0:0 /app/package.json /app/package.json # buildkit
# 2024-12-07 16:45:40 102.88KB 复制新文件或目录到容器中
COPY --chown=0:0 /app/CHANGELOG.md /app/CHANGELOG.md # buildkit
# 2024-12-07 16:45:40 216.82MB 复制新文件或目录到容器中
COPY --chown=0:0 /app/build /app/build # buildkit
# 2024-12-07 16:45:32 2.79GB 执行命令并创建新的镜像层
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-12-07 16:44:18 1.42KB 复制新文件或目录到容器中
COPY --chown=0:0 ./backend/requirements.txt ./requirements.txt # buildkit
# 2024-12-07 16:44:18 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-12-07 16:43:35 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-12-07 16:43:35 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-12-07 16:43:35 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-12-07 16:43:35 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-12-07 16:43:35 0.00B 设置环境变量 HOME
ENV HOME=/root
# 2024-12-07 16:43:35 0.00B 设置工作目录为/app/backend
WORKDIR /app/backend
# 2024-12-07 16:43:35 0.00B 设置环境变量 HF_HOME
ENV HF_HOME=/app/backend/data/cache/embedding/models
# 2024-12-07 16:43:35 0.00B 设置环境变量 TIKTOKEN_ENCODING_NAME TIKTOKEN_CACHE_DIR
ENV TIKTOKEN_ENCODING_NAME=cl100k_base TIKTOKEN_CACHE_DIR=/app/backend/data/cache/tiktoken
# 2024-12-07 16:43:35 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-12-07 16:43:35 0.00B 设置环境变量 WHISPER_MODEL WHISPER_MODEL_DIR
ENV WHISPER_MODEL=base WHISPER_MODEL_DIR=/app/backend/data/cache/whisper/models
# 2024-12-07 16:43:35 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-12-07 16:43:35 0.00B 设置环境变量 OLLAMA_BASE_URL OPENAI_API_BASE_URL
ENV OLLAMA_BASE_URL=/ollama OPENAI_API_BASE_URL=
# 2024-12-07 16:43:35 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-12-07 16:43:35 0.00B 定义构建参数
ARG GID=0
# 2024-12-07 16:43:35 0.00B 定义构建参数
ARG UID=0
# 2024-12-07 16:43:35 0.00B 定义构建参数
ARG USE_RERANKING_MODEL=
# 2024-12-07 16:43:35 0.00B 定义构建参数
ARG USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
# 2024-12-07 16:43:35 0.00B 定义构建参数
ARG USE_CUDA_VER=cu121
# 2024-12-07 16:43:35 0.00B 定义构建参数
ARG USE_OLLAMA=false
# 2024-12-07 16:43:35 0.00B 定义构建参数
ARG USE_CUDA=false
# 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 45.80MB 执行命令并创建新的镜像层
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 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 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-02 08:00:00 74.82MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1733097600'
镜像信息
{
"Id": "sha256:773fdfe622f40289e7877f2e934d89d979d6e0b4e505978b4b9a4f8ff271a09a",
"RepoTags": [
"ghcr.io/open-webui/open-webui:v0.4.8",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/open-webui/open-webui:v0.4.8"
],
"RepoDigests": [
"ghcr.io/open-webui/open-webui@sha256:c1e4f0927fb0acd53bcbd8bbc92ecaf7ca36a23ee4cb8f25ce90c541012a473a",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/open-webui/open-webui@sha256:e1288b08239f4ebd6d8f9f11c29dedd41e0a5f4604d8919810935861e9aba079"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-12-07T08:45:40.646669742Z",
"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.11",
"PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3",
"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=29a271959556743e6deb4d55a5a982983335d7ab",
"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-12-07T08:43:29.231Z",
"org.opencontainers.image.description": "User-friendly AI Interface (Supports Ollama, OpenAI API, ...)",
"org.opencontainers.image.licenses": "MIT",
"org.opencontainers.image.revision": "29a271959556743e6deb4d55a5a982983335d7ab",
"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.8"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 4221163304,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/c4ffded2004b78d79fee3ba150f717a118f6f7e7fbaaf11055e628747a60ff6a/diff:/var/lib/docker/overlay2/c4cf81c2c45392c3ecb8cef60c8eb99fdc179c506bb5bbcfba20c7e130fd1b01/diff:/var/lib/docker/overlay2/c140ae78f3d7425e8bdbfcf5eb6d6b9400943ad5f2ea6d3fc192c83a55fd1366/diff:/var/lib/docker/overlay2/bd2494ab4d87382d86f6c9507617179bfbedbbcb4eff2897f253900597277d75/diff:/var/lib/docker/overlay2/3db910e4c746d2d5f6be2f2b4caf2380fd30adf8d667f33872581fe6ed18ba7c/diff:/var/lib/docker/overlay2/d9b4adf07852a95f4570a0f67599be63b0001b0b6446b09d37bfa25ead9bbc42/diff:/var/lib/docker/overlay2/cfb8c8e7694afd65ada710bb830aea5cefc1ff861ea6b4cad51812c1752f9442/diff:/var/lib/docker/overlay2/a531336b63bd1dfe370f18e8bc9b5d6029243c55f02891ac58e0ee3be7dfb563/diff:/var/lib/docker/overlay2/842430dd20b772da8cc90d9bb265368105314d6e6df34c702d799370fea9be14/diff:/var/lib/docker/overlay2/3b2e84c375477ea5f86d5bdbdf8acd8137f64cc9e2334579489b4b5da331fa93/diff:/var/lib/docker/overlay2/4b943c89cf2d5a394559080deef0cf4bd6eeebe36ed465e783d962b0fd0c2473/diff:/var/lib/docker/overlay2/1a2f7850c5519060cea5cb1d65cc54a430a08d6d346f72f98ef30f3185aece60/diff:/var/lib/docker/overlay2/39198a5249f49595b379a32d8d80cc4f7cb49337021caf7ca51dbc4bd09accf0/diff:/var/lib/docker/overlay2/74897562657fd40d5c0515726931a3895f41e646999a1d00e09280b30b94d7af/diff:/var/lib/docker/overlay2/404e59c4c9adc52232d40ea19adf6c8d76b2fc9392dc54e49d9840bbd9ffc580/diff",
"MergedDir": "/var/lib/docker/overlay2/5207c02bc315be6b76dbfbf7b49090bfa8a2130e6683bc945e8331ce5b9b82ab/merged",
"UpperDir": "/var/lib/docker/overlay2/5207c02bc315be6b76dbfbf7b49090bfa8a2130e6683bc945e8331ce5b9b82ab/diff",
"WorkDir": "/var/lib/docker/overlay2/5207c02bc315be6b76dbfbf7b49090bfa8a2130e6683bc945e8331ce5b9b82ab/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c0f1022b22a9b36851b358f44e5475e39d166e71a8073cf53c894a299239b1c5",
"sha256:42ca3c4e0243a05de0d6b5acbb61b2e902d621cf9996326d5acbd5e4855bfce1",
"sha256:3a9ca0e18fd5adba3d02c3ee14e4aac0f595924f3bc5718ceae7862c518d9be3",
"sha256:ad05cdcb59cdb4a37f0e44dcc86834aabd4fe795f64c6f6c1108c69fabb625af",
"sha256:d8eddbca9b6b8e7761aa1a25b0689a0050d58ce25a264a125a679604b5229f96",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:d4dd9b52e652a0d1115bbbdf8ca3d08caa465636fa9589c690310d22f783a47a",
"sha256:ffb4e948a08901fe34879a82db53c7d60c7c2a4426c19399a01dd64d90b2fc7d",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:8499975da24179c60be86b3efe9a391a13b09aee2954b53778cf3a46d979f778",
"sha256:8778285a614963d4d3192fcf81b36b83bb079e095469000a518bdc6d57a64c63",
"sha256:dd4b03e72431a8710d2df0676f2699ea7358fe903ec1c6f51f17633985bd3da2",
"sha256:2fa743abcd291e745b4541211c8164f32482d094c673aa22cb22b414afe18034",
"sha256:a8872633060a542d959fc418cb7761390139445ad09de7fabb544d3d5f69890d",
"sha256:d1675262708f771343eb15ec22b0dd6c15f05a5b9cba3acf77b130ce3c1c534c",
"sha256:428c49a342c543d0041b2a343c82fbb0559dadc4c4e4c0e527013737acea4bc5"
]
},
"Metadata": {
"LastTagTime": "2024-12-07T19:43:53.08097124+08:00"
}
}