I have Dockerfile file where I install composer, npm, yarn, php extentions and different packages
I need for my docker box(ex : nano, mc, curl , git)
Also I have docker-compose.yml with several containers defined(web, db, adminer and composer)
and in the last container
composer:
container_name: hostels3_composer
image: composer:1.8
volumes:
- ${APP_PATH_HOST}:${APP_PTH_CONTAINER}
working_dir: ${APP_PTH_CONTAINER}
command: composer install --ignore-platform-reqs
command - that is what run when all steps in Dockerfile are completed.
I wonder if there is a way to run other command(in my case php artisan key:generate) after
composer install
was cussesfully run and file /vendor/autoload.php was generated?