gpt4 book ai didi

node.js - 更新 docker 容器中的 git 版本

转载 作者:太空宇宙 更新时间:2023-11-03 22:29:36 25 4
gpt4 key购买 nike

我正在 docker 中实现一个 node.js 应用程序,它需要使用 git worktree 功能。但是,即使我这样做:

RUN apt-get update && apt-get install -y git=2.10.0

找不到2.1.0之后的任何其他版本

我正在构建图像:

FROM node:4.4.2 

如何获取支持安装在 docker 容器上的工作树功能的最新 git 版本

最佳答案

截至本文发表时,没有 package repos from Debian包括 2.9 以上的版本。如果您需要更新版本,则需要从 source 下载并安装该版本。这是 documented on git-scm ,或者找到另一个存储库。

关于node.js - 更新 docker 容器中的 git 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39372107/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com