为什么 git 核心每天在 Azure webapp 上被删除?

Why git core is deleted everyday on Azure webapp?

我已经在 Azure webapp 上安装了 git-core,但在第二天 git 命令将无法运行。每天我都需要重新安装 git-core 和其他组件。

我每天都需要放这个脚本:

apt-get update
apt-get install -y git-core
apt-get install -y mysql-server

是否有要在 Azure 门户界面中设置的参数或要在应用服务文件内容中插入的脚本?

门户中没有任何参数可以设置容器的依赖项(它是临时的)。相反,你应该做的是构建你的容器,并在上面安装你的依赖项。使用您的 apt-get 安装命令创建您自己的 dockerfile 并发布到 docker hub 以便从您的网络应用程序使用。

希望对您有所帮助。