Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Composer install with dockerfile

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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Composer #install #dockerfile
ADD COMMENT
Topic
Name
3+7 =