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