dev:构建
This commit is contained in:
parent
2c6b53c728
commit
6c15120fbb
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue