📌  相关文章
📜  使用 dockerfile 安装 Composer - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:12.796000             🧑  作者: Mango

代码示例1
version: '3.7'

services:
  #...other services
  composer_installation:
   container_name: composer_installation
   image: composer
   volumes:
     - ./YOUR-PROJECT/:/app
   command: sh -c "composer install --ignore-platform-reqs && cp .env.example .env && php artisan key:generate"