镜像构建历史
# 2025-01-23 06:19:03 0.00B 设置默认要执行的命令
CMD ["bash" "start.sh"]
# 2025-01-23 06:19:03 0.00B 设置环境变量 DOCKER
ENV DOCKER=true
# 2025-01-23 06:19:03 0.00B 设置环境变量 WEBUI_BUILD_VERSION
ENV WEBUI_BUILD_VERSION=9dd45ddf7c5cea09be434278edf68f3fdb23dcfd
# 2025-01-23 06:19:03 0.00B 定义构建参数
ARG BUILD_HASH=9dd45ddf7c5cea09be434278edf68f3fdb23dcfd
# 2025-01-23 06:19:03 0.00B 指定运行容器时使用的用户
USER 0:0
# 2025-01-23 06:19:03 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'}
# 2025-01-23 06:19:03 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2025-01-23 06:19:03 69.70MB 复制新文件或目录到容器中
COPY --chown=0:0 ./backend . # buildkit
# 2025-01-23 06:19:03 3.76KB 复制新文件或目录到容器中
COPY --chown=0:0 /app/package.json /app/package.json # buildkit
# 2025-01-23 06:19:03 116.90KB 复制新文件或目录到容器中
COPY --chown=0:0 /app/CHANGELOG.md /app/CHANGELOG.md # buildkit
# 2025-01-23 06:19:03 226.87MB 复制新文件或目录到容器中
COPY --chown=0:0 /app/build /app/build # buildkit
# 2025-01-23 03:36:40 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
# 2025-01-23 03:35:39 1.52KB 复制新文件或目录到容器中
COPY --chown=0:0 ./backend/requirements.txt ./requirements.txt # buildkit
# 2025-01-23 03:35:39 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
# 2025-01-23 03:34:56 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
# 2025-01-23 03:34:56 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
# 2025-01-23 03:34:56 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
# 2025-01-23 03:34:56 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
# 2025-01-23 03:34:56 0.00B 设置环境变量 HOME
ENV HOME=/root
# 2025-01-23 03:34:56 0.00B 设置工作目录为/app/backend
WORKDIR /app/backend
# 2025-01-23 03:34:56 0.00B 设置环境变量 HF_HOME
ENV HF_HOME=/app/backend/data/cache/embedding/models
# 2025-01-23 03:34:56 0.00B 设置环境变量 TIKTOKEN_ENCODING_NAME TIKTOKEN_CACHE_DIR
ENV TIKTOKEN_ENCODING_NAME=cl100k_base TIKTOKEN_CACHE_DIR=/app/backend/data/cache/tiktoken
# 2025-01-23 03:34:56 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
# 2025-01-23 03:34:56 0.00B 设置环境变量 WHISPER_MODEL WHISPER_MODEL_DIR
ENV WHISPER_MODEL=base WHISPER_MODEL_DIR=/app/backend/data/cache/whisper/models
# 2025-01-23 03:34:56 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
# 2025-01-23 03:34:56 0.00B 设置环境变量 OLLAMA_BASE_URL OPENAI_API_BASE_URL
ENV OLLAMA_BASE_URL=/ollama OPENAI_API_BASE_URL=
# 2025-01-23 03:34:56 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=
# 2025-01-23 03:34:56 0.00B 定义构建参数
ARG GID=0
# 2025-01-23 03:34:56 0.00B 定义构建参数
ARG UID=0
# 2025-01-23 03:34:56 0.00B 定义构建参数
ARG USE_RERANKING_MODEL=
# 2025-01-23 03:34:56 0.00B 定义构建参数
ARG USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
# 2025-01-23 03:34:56 0.00B 定义构建参数
ARG USE_CUDA_VER=cu121
# 2025-01-23 03:34:56 0.00B 定义构建参数
ARG USE_OLLAMA=false
# 2025-01-23 03:34:56 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 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-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-04 06:49:59 74.77MB
# debian.sh --arch 'amd64' out/ 'bookworm' '@1736726400'
镜像信息
{
"Id": "sha256:d57dd4d08ebab7771d1a1b4bf0f0d12eb406fb1c0421cb910701b836cbffb23e",
"RepoTags": [
"ghcr.io/open-webui/open-webui:v0.5.6",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/open-webui/open-webui:v0.5.6"
],
"RepoDigests": [
"ghcr.io/open-webui/open-webui@sha256:71935f44950dd4a34c9dddade4bbd037f9d4d5c750b25dd6bca3d293d3630437",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/ghcr.io/open-webui/open-webui@sha256:44e594f947dd5c2b3733426d6a8460b00a6e969ec735ab9bec73463a5db20b55"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-22T22:19:03.346500156Z",
"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=9dd45ddf7c5cea09be434278edf68f3fdb23dcfd",
"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": "2025-01-22T22:16:30.131Z",
"org.opencontainers.image.description": "User-friendly AI Interface (Supports Ollama, OpenAI API, ...)",
"org.opencontainers.image.licenses": "BSD-3-Clause",
"org.opencontainers.image.revision": "9dd45ddf7c5cea09be434278edf68f3fdb23dcfd",
"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.5.6"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 4237846102,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/bbb82beaa6338f9e36cf1a411d3cd8f36548f8c99dc3f0169f3d334675d94083/diff:/var/lib/docker/overlay2/a863c1d5804ff06e5b09477265cef1d55062913f9e54a233a2f21e654f910efc/diff:/var/lib/docker/overlay2/7238d5e245e4fff77f26b8e2d33263e825249af7b8f0525a3f340d58dbe85712/diff:/var/lib/docker/overlay2/cd04ad007a02b3be8fd985d5f44b908a082a065b7c4d6bc4577b003942cfeb7d/diff:/var/lib/docker/overlay2/f0ee6c8899bd165ae158d06a768073c934d9b527ff86e2cd7f5ab900a08bc075/diff:/var/lib/docker/overlay2/22a870767fd1444f75f8b93341d4b47664cc80b2a8f3f146e7cc81df34f1d632/diff:/var/lib/docker/overlay2/345aebb742ca6615fa3977760c904f87cddd8fa8951fca2f23b7c207f753c3e8/diff:/var/lib/docker/overlay2/8eb948bebf92846221f70cb82ebb8e3bd8a893cc7a44c784477ebc6275f3bf7e/diff:/var/lib/docker/overlay2/c617ebd2dc4bbbdbc6db1ed6a15183e270edc8066974e23bd57fd1815a503cda/diff:/var/lib/docker/overlay2/c1ded1e14e23bef06a7d1acf41bb6ad75ddbc2a3bd9fe19556ae5fd32b730855/diff:/var/lib/docker/overlay2/f32e4080c79fa1c42c40aab9af6d236929d288d5ddfbe5cf171fc8e7f3d74d8b/diff:/var/lib/docker/overlay2/e2498eef6807ffcf9a20bcfbab4433cba30dabeedbe48c8985c3c10e7ce39dbc/diff:/var/lib/docker/overlay2/e736c3c5e8999e5ca6fd43fb29fad9d9db2fcdfe1ca0583dd513b83a2622c4c5/diff:/var/lib/docker/overlay2/175834f8e2f92b496202659884662c9cba6b8e631c93bb5f739c7de204d40710/diff:/var/lib/docker/overlay2/84c5fbb64568c2307107468523b21101c6d2cc2d93b7bd46134875b7faeff5d5/diff",
"MergedDir": "/var/lib/docker/overlay2/020a011a391a278daffc4b6d1b2e812864e39a6daf937e8ebd7cb7c1172cc2bb/merged",
"UpperDir": "/var/lib/docker/overlay2/020a011a391a278daffc4b6d1b2e812864e39a6daf937e8ebd7cb7c1172cc2bb/diff",
"WorkDir": "/var/lib/docker/overlay2/020a011a391a278daffc4b6d1b2e812864e39a6daf937e8ebd7cb7c1172cc2bb/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:f5fe472da25334617e6e6467c7ebce41e0ae5580e5bd0ecbf0d573bacd560ecb",
"sha256:3eed43df44267f2c4a51eafa1273da2f09bff18f94e9b8bf2788f583db4c7457",
"sha256:494e604b4a140b512112cba8d2f0320381eaf9dd6e1cddef870deb84b505577d",
"sha256:a4bcffac016a4692995288d8d71ab2a05be7c2359c2d871cd824fe496e6f417a",
"sha256:5eb3ed807debe797e83d8a1616679c2e23647a6537dd38d5e5a8544155e14e37",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:8647b1990db4d7ffe52dd0fe47a3b2a7f931b7c488cd88df9f7e5403680573c4",
"sha256:5c6cc7a369256a18d2447be4f587cc695503ee4d095fac9d807b8d669506bdfa",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
"sha256:8415e00eb35d4d6e6a29986ce0ee3d7dee4b1bdf4cbd5730534ccd581963f3b3",
"sha256:62d9eb463c492ef1d9e17ad7c3550f8d8c2fced7f70ecfd5f2a0843ef4be4c1d",
"sha256:e043b72d8d22d3de2ec3a14aea6c8af464910dfc813562f603a8e5d09ca36a0e",
"sha256:789b87f2f7a2893f30af83973637b1982ad37ea3a955f8015d55d1dfec6a780c",
"sha256:1aee464b3ce524511341b79b635946f70d93c5cd258f780f196f8dd785a58a4d",
"sha256:bb88f7888f3b9e9cccc4abfb0f1ccda8086bab9d161e044ee9c09e59940f0e3e",
"sha256:f2818e95152727162942734e47f90a0f12090be85ab80307300c9dfb987a55a7"
]
},
"Metadata": {
"LastTagTime": "2025-01-23T10:13:20.415975376+08:00"
}
}