dev:构建

This commit is contained in:
liubocheng 2025-03-26 20:45:53 +08:00
parent 2c6b53c728
commit 6c15120fbb
1 changed files with 9 additions and 0 deletions

View File

@ -7,6 +7,15 @@ services:
working_dir: /var/www/html working_dir: /var/www/html
networks: networks:
- laravel_net - laravel_net
# 修正后的启动命令
command: >
sh -c "set -ex
&& apt-get update
&& apt-get install -y libzip-dev unzip
&& docker-php-ext-install pdo_mysql zip
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
&& composer install --no-dev --optimize-autoloader
&& php-fpm"
nginx: nginx:
image: nginx:1.18 image: nginx:1.18