Use multi-stage build for Docker image

1. Allows to build the composer dependencies with official composer img
2. php-fpm --nodaemonize: Force to stay in foreground and ignore daemo-
   nize option from configuration file
This commit is contained in:
Birkhoff Lee
2019-12-04 08:23:11 +08:00
parent b6096aadfa
commit bf2e8c9c99
2 changed files with 28 additions and 12 deletions

View File

@ -24,7 +24,7 @@ http {
server {
listen 80 default_server;
root /var/www/public;
root /app/public;
index index.php;
charset utf-8;