更新dockfile

This commit is contained in:
2024-04-11 17:55:12 +08:00
parent 04ce04c040
commit 0a34a6c69b

View File

@@ -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