Skip to content

Conversation

@oriore
Copy link
Collaborator

@oriore oriore commented Jun 26, 2020

docker build時にcomposer instlalを実行する

DockerFile内で実行されるスクリプトはWORKDIRの場所で実行されるため、
ディレクトリ移動とinstallの実行を一つのスクリプトで実行してます

RUN cd /var/www/application/service/ && composer install

DockerCompose のVolumeの追加については下記のVolume trickをみてもらったほうがわかりやすいかも
https://qiita.com/miyamonz/items/e0b0f86c47b26019d284

  • /var/www/application/service/vendor

@oriore oriore linked an issue Jun 26, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

コンテナビルド時にcomposerを実行する

2 participants