docker.io/libretranslate/libretranslate:latest linux/amd64

docker.io/libretranslate/libretranslate:latest - 国内下载镜像源 浏览次数:67

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

很好!以下是镜像描述:

LibreTranslate是一个开源的翻译服务,它支持多种语言对话,能够进行实时翻译,并且可以使用各种API进行交互。这个镜像允许你在Docker中轻松部署和运行LibreTranslate服务。

源镜像 docker.io/libretranslate/libretranslate:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest
镜像ID sha256:8317c25a6e16dd612338ba726d4e03600d0abbe69fc3aef9028fbb364c0b8d10
镜像TAG latest
大小 1.29GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 ./venv/bin/libretranslate --host *
工作目录 /app
OS/平台 linux/amd64
浏览量 67 次
贡献者 12*******5@qq.com
镜像创建 2024-10-09T05:10:43.792051372Z
同步时间 2024-10-09 16:34
更新时间 2024-11-22 16:15
开放端口
5000/tcp
环境变量
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.9 PYTHON_PIP_VERSION=24.0 PYTHON_SETUPTOOLS_VERSION=65.5.1 PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/def4aec84b261b939137dd1c69eff0aabb4a7bf4/public/get-pip.py PYTHON_GET_PIP_SHA256=bc37786ec99618416cc0a0ca32833da447f4d91ab51d2c138dd15b7af21e8e9a

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest  docker.io/libretranslate/libretranslate:latest

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest  docker.io/libretranslate/libretranslate:latest

Shell快速替换命令

sed -i 's#libretranslate/libretranslate:latest#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest  docker.io/libretranslate/libretranslate:latest'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest  docker.io/libretranslate/libretranslate:latest'

镜像历史

大小 创建时间 层信息
0.00B 2024-10-09 13:10:43 ENTRYPOINT ["./venv/bin/libretranslate" "--host" "*"]
0.00B 2024-10-09 13:10:43 EXPOSE map[5000/tcp:{}]
0.00B 2024-10-09 13:10:43 RUN |2 with_models=false models= /bin/sh -c if [ "$with_models" = "true" ]; then if [ ! -z "$models" ]; then ./venv/bin/python scripts/install_models.py --load_only_lang_codes "$models"; else ./venv/bin/python scripts/install_models.py; fi fi # buildkit
228.00B 2024-10-09 13:10:43 COPY --chown=1032:1032 /app/venv/bin/ltmanage /usr/bin/ # buildkit
0.00B 2024-10-09 13:10:43 WORKDIR /app
1.16GB 2024-10-09 13:10:43 COPY --chown=1032:1032 /app /app # buildkit
0.00B 2024-10-09 13:09:39 USER libretranslate
339.48KB 2024-10-09 13:09:39 RUN |2 with_models=false models= /bin/sh -c addgroup --system --gid 1032 libretranslate && adduser --system --uid 1032 libretranslate && mkdir -p /home/libretranslate/.local && chown -R libretranslate:libretranslate /home/libretranslate/.local # buildkit
0.00B 2024-10-09 13:09:39 ARG models=
0.00B 2024-10-09 13:09:39 ARG with_models=false
0.00B 2024-08-30 07:26:33 CMD ["python3"]
11.60MB 2024-08-30 07:26:33 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" wheel ; rm -f get-pip.py; pip --version # buildkit
0.00B 2024-08-30 07:26:33 ENV PYTHON_GET_PIP_SHA256=bc37786ec99618416cc0a0ca32833da447f4d91ab51d2c138dd15b7af21e8e9a
0.00B 2024-08-30 07:26:33 ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/def4aec84b261b939137dd1c69eff0aabb4a7bf4/public/get-pip.py
0.00B 2024-08-30 07:26:33 ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
0.00B 2024-08-30 07:26:33 ENV PYTHON_PIP_VERSION=24.0
32.00B 2024-08-30 07:26:33 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
31.99MB 2024-08-30 07:26:33 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
0.00B 2024-08-30 07:26:33 ENV PYTHON_VERSION=3.11.9
0.00B 2024-08-30 07:26:33 ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
3.11MB 2024-08-30 07:26:33 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
0.00B 2024-08-30 07:26:33 ENV LANG=C.UTF-8
0.00B 2024-08-30 07:26:33 ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0.00B 2024-08-30 07:26:33 /bin/sh -c #(nop) CMD ["bash"]
80.63MB 2024-08-30 07:26:33 /bin/sh -c #(nop) ADD file:1b8ac8ec2b2cbdfc9682f076e7e579579d6df6235ed23b2e63f8eec671c52e92 in /

镜像信息

{
    "Id": "sha256:8317c25a6e16dd612338ba726d4e03600d0abbe69fc3aef9028fbb364c0b8d10",
    "RepoTags": [
        "libretranslate/libretranslate:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate:latest"
    ],
    "RepoDigests": [
        "libretranslate/libretranslate@sha256:d8a3c5db54f19ebfc8e7ff4b88c62cfbd3eb13ef2cea3669cbc82e69690342eb",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/libretranslate/libretranslate@sha256:3e152342c840109f4c108454b7be1476025d8954f7728f2e9fa62e3ef7ad329d"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-09T05:10:43.792051372Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "libretranslate",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "5000/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.9",
            "PYTHON_PIP_VERSION=24.0",
            "PYTHON_SETUPTOOLS_VERSION=65.5.1",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/def4aec84b261b939137dd1c69eff0aabb4a7bf4/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=bc37786ec99618416cc0a0ca32833da447f4d91ab51d2c138dd15b7af21e8e9a"
        ],
        "Cmd": null,
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/app",
        "Entrypoint": [
            "./venv/bin/libretranslate",
            "--host",
            "*"
        ],
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1289663817,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/15c6db36df15f305b99d335e0f6c001a66b95228859ef74e2ba21e20115310b5/diff:/var/lib/docker/overlay2/65a81990e8ad178b0b7149a46dbcf845b50ded078a3618c95d298f55630f0f3c/diff:/var/lib/docker/overlay2/a2f166ce3d949ad2c6a420799f5ba26db668e750e1f090ded3fffead31d2700f/diff:/var/lib/docker/overlay2/061769406fd9b64d8b6b5161f004fbbc5f6e76caf28a9c73f82a1fafc886a9b4/diff:/var/lib/docker/overlay2/3830943be6ad3f80296fad444dea8da6299275c5ff6f174d8269c530e3d66320/diff:/var/lib/docker/overlay2/494ed73301e6841a8b829eb6106c105c740f6c8e869c7c42ad1b6d8b7b06e47f/diff:/var/lib/docker/overlay2/8f89690f1499dff2bb610917ab5161d17e85971a1aa99ce8e25be4704a55aae8/diff:/var/lib/docker/overlay2/fd210f3d6705e5a442a29234a12c5cc804f7e655d2a3cfb797e4e87d6a0d8ac7/diff:/var/lib/docker/overlay2/beb0339a569b2ee57063850261bda07fe03586b1ac526f957f6e2466977bedd5/diff",
            "MergedDir": "/var/lib/docker/overlay2/cbe4bd16722adeaed269b2c0e25d174ad5fab00b9d1d92d1136f1d3e74fb16f0/merged",
            "UpperDir": "/var/lib/docker/overlay2/cbe4bd16722adeaed269b2c0e25d174ad5fab00b9d1d92d1136f1d3e74fb16f0/diff",
            "WorkDir": "/var/lib/docker/overlay2/cbe4bd16722adeaed269b2c0e25d174ad5fab00b9d1d92d1136f1d3e74fb16f0/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:6d190562115fea8651d83aeb5fe522b8ad03887859fbdb70f53d26fa26a1ed9e",
            "sha256:79a87afcb3bfadc291e9962872a604492790bd36835eaff364796934e90eaa95",
            "sha256:f19aaa71642b5913801430bc34f767f71064fb02471199973847981788a65719",
            "sha256:aa8365160dd36f822fb35965c1b4adff09996b4d6763461215306f0e9fc25cee",
            "sha256:e4fec60b89ea6abcdc89d9966701115184dbf64c93b25f44284caefbce9fa58a",
            "sha256:197fc317b1824edaa2d0969f7983ed7059557396367dd8ec84af18db03e175f9",
            "sha256:8d617924a23fd3c3f0c865bcbd97d138dfbf59b1e93f4a91cd74ff9aa5dacf67",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:b0915284d92c67d45a2027c0559028812ee9fccc0a18d6524eddf8ca3e27b15c",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-10-09T16:33:32.381276552+08:00"
    }
}

更多版本

docker.io/libretranslate/libretranslate:latest

linux/amd64 docker.io1.29GB2024-10-09 16:34
66