Skip to content

docker build時にcomposer installをdocker内で実行する#5

Open
oriore wants to merge 1 commit intomasterfrom
feature/docker-build-composer
Open

docker build時にcomposer installをdocker内で実行する#5
oriore wants to merge 1 commit intomasterfrom
feature/docker-build-composer

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を実行する

1 participant