From f162031f00135172df14f936c06489333f7b0dca Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 11 Apr 2024 18:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4c54b12..5c99769 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,6 +50,9 @@ WORKDIR /var/www/html # 将当前目录下的文件拷贝到工作目录 COPY . /var/www/html +# 安装git +RUN apt-get install -y git + # 内部安装compsoer并安装依赖,如果不需要可以注释掉 RUN apt install unzip RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer