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