Namespace
langgenius
Image / Tag
dify-api:925305c77eb88002ed23d9290ad97c30540951d5
Content Digest
sha256:ed3b58abcafdcb58d7b79941a9ea9a19ea29f805f36f869f7591c90fd159d6a6
Details
Created

2023-12-25 11:40:17 UTC

Size

342 MB

Content Digest
Labels
  • org.opencontainers.image.created
    2023-12-25T11:38:41.297Z
  • org.opencontainers.image.description
    An Open-Source Assistants API and GPTs alternative. Dify.AI is an LLM application development platform. It integrates the concepts of Backend as a Service and LLMOps, covering the core tech stack required for building generative AI-native applications, including a built-in RAG engine.
  • org.opencontainers.image.licenses
    NOASSERTION
  • org.opencontainers.image.revision
    925305c77eb88002ed23d9290ad97c30540951d5
  • org.opencontainers.image.source
    https://github.com/langgenius/dify
  • org.opencontainers.image.title
    dify
  • org.opencontainers.image.url
    https://github.com/langgenius/dify
  • org.opencontainers.image.version
    deploy-dev

Environment
APP_API_URL

http://127.0.0.1:5001

APP_WEB_URL

http://127.0.0.1:3000

COMMIT_SHA

925305c77eb88002ed23d9290ad97c30540951d5

CONSOLE_API_URL

http://127.0.0.1:5001

CONSOLE_WEB_URL

http://127.0.0.1:3000

DEPLOY_ENV

PRODUCTION

EDITION

SELF_HOSTED

FLASK_APP

app.py

GPG_KEY

A035C8C19219BA821ECEA86B64E628F8D684696D

LANG

C.UTF-8

PATH

/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PYTHON_GET_PIP_SHA256

9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6

PYTHON_GET_PIP_URL

https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py

PYTHON_PIP_VERSION

23.0.1

PYTHON_SETUPTOOLS_VERSION

65.5.1

PYTHON_VERSION

3.10.13

SERVICE_API_URL

http://127.0.0.1:5001

TRANSFORMERS_OFFLINE

true


Layers

[#000] sha256:af107e978371b6cd6339127a05502c5eacd1e6b0e9eb7b2f4aa7b6fc87e2dd81 - 8.12% (27.8 MB)

[#001] sha256:8ce3f2b601ccac03ff1858022363c325355bafba224123a4563dade58bc8e70f - 0.98% (3.35 MB)

[#002] sha256:64119eae2e5157ca18d0ec9b9c7865e454b09bca702c3e2f579703deb0eaaeaf - 3.45% (11.8 MB)

[#003] sha256:a28cd3d033268c30cb986f4a0d36c4aeda4c5aeaa5c764562f323c73d1f4f771 - 0.0% (244 Bytes)

[#004] sha256:2c1fe8bcf114038da9146a2528b2c3b606a09873aee7122f8529d45418fcd9e9 - 0.94% (3.21 MB)

[#005] sha256:9a830e8621522ef51d899188d087f1d4936728924e60cefc781e21dad3cb753c - 0.0% (111 Bytes)

[#006] sha256:5faa99785477f36047b7a16da07e0b6ff07f38b9d06a68b88f254a8259f93fe6 - 13.09% (44.8 MB)

[#007] sha256:46602738edc34f493cf2b2c5cb70c029963cbdec294793522e4731ad3e75c720 - 71.43% (244 MB)

[#008] sha256:7654c6d64a6d500b5ad0a80ff98bddabc5d715089de4e1bc10320f62e7c97c68 - 1.39% (4.76 MB)

[#009] sha256:dc802dff6c91175356a8817f5c84bc4667611146f5d7a5ddb0b6e6712aeaa5a9 - 0.61% (2.1 MB)

[#010] sha256:f6913cf46d18fb1f3080c42bf4d449bf1d0d5f8ace3b0d363b34960295461d1b - 0.0% (502 Bytes)

[#011] sha256:e0bf559a76ef742b0edbf74f1750f9c519a29da372ccd98ec4bfc6e39c801007 - 0.0% (502 Bytes)


History
2023-12-19 01:20:27 UTC

/bin/sh -c #(nop) ADD file:ac3cd70031d35e46d86b876934946ffc8756de4de065fbc926dce642dac07ff3 in /

2023-12-19 01:20:28 UTC

/bin/sh -c #(nop) CMD ["bash"]

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV LANG=C.UTF-8

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

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

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV PYTHON_VERSION=3.10.13

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

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 --without-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/*; python3 --version # buildkit

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; for src in idle3 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

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV PYTHON_PIP_VERSION=23.0.1

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV PYTHON_SETUPTOOLS_VERSION=65.5.1

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/4cfa4081d27285bda1220a62a5ebf5b4bd749cdb/public/get-pip.py

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

ENV PYTHON_GET_PIP_SHA256=9cc01665956d22b3bf057ae8287b035827bfd895da235bcea200ab3b811790b6

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends wget; wget -O get-pip.py "$PYTHON_GET_PIP_URL"; echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; apt-mark auto '.*' > /dev/null; [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python get-pip.py --disable-pip-version-check --no-cache-dir --no-compile "pip==$PYTHON_PIP_VERSION" "setuptools==$PYTHON_SETUPTOOLS_VERSION" ; rm -f get-pip.py; pip --version # buildkit

2023-10-21 15:49:12 UTC (buildkit.dockerfile.v0)

CMD ["python3"]

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV FLASK_APP=app.py

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV EDITION=SELF_HOSTED

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV DEPLOY_ENV=PRODUCTION

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV CONSOLE_API_URL=http://127.0.0.1:5001

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV CONSOLE_WEB_URL=http://127.0.0.1:3000

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV SERVICE_API_URL=http://127.0.0.1:5001

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV APP_API_URL=http://127.0.0.1:5001

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

ENV APP_WEB_URL=http://127.0.0.1:3000

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

EXPOSE map[5001/tcp:{}]

2023-12-25 11:38:48 UTC (buildkit.dockerfile.v0)

WORKDIR /app/api

2023-12-25 11:38:54 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends bash curl wget vim nodejs && apt-get autoremove && rm -rf /var/lib/apt/lists/* # buildkit

2023-12-25 11:40:16 UTC (buildkit.dockerfile.v0)

COPY /pkg /usr/local # buildkit

2023-12-25 11:40:16 UTC (buildkit.dockerfile.v0)

COPY . /app/api/ # buildkit

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c python -c "from transformers import GPT2TokenizerFast; GPT2TokenizerFast.from_pretrained('gpt2')" # buildkit

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

ENV TRANSFORMERS_OFFLINE=true

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

COPY docker/entrypoint.sh /entrypoint.sh # buildkit

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

ARG COMMIT_SHA

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

ENV COMMIT_SHA=925305c77eb88002ed23d9290ad97c30540951d5

2023-12-25 11:40:17 UTC (buildkit.dockerfile.v0)

ENTRYPOINT ["/bin/bash" "/entrypoint.sh"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete