Horje
install composer in dockerfile Code Example
docker composer install
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
install composer in dockerfile
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
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"




Shell

Related
how to copy a file in linux Code Example how to copy a file in linux Code Example
latest package yarn dependencies Code Example latest package yarn dependencies Code Example
grep empty lines in a file Code Example grep empty lines in a file Code Example
copy file from ssh server to local Code Example copy file from ssh server to local Code Example
django shell get db info Code Example django shell get db info Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11