Running composer install within a Dockerfile

后端 未结 4 752
甜味超标
甜味超标 2020-12-23 11:58

I\'m trying to Dockerize my laravel app. The app is already built and in git, but I .gitignore my vendor folder. I\'ve added a Dockerfile, which looks like this:

<         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 12:45

    I use this command and it generates the vendor :)

    docker run --rm -it --volume $(pwd):/app prooph/composer:7.2 install --ignore-platform-reqs
    

提交回复
热议问题