Browse Source

agregue composer install al docker build

Luciano Andrade 7 years ago
parent
commit
43fd25ee80
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Dockerfile

+ 2 - 0
Dockerfile

@@ -35,6 +35,8 @@ RUN rm -rf /opt/ftth/app/config/parameters.yml /opt/ftth/app/config/url_webservi
 RUN cp -r keys /opt/keys/
 RUN chmod 0600 /opt/keys/*
 
+RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction 
+
 CMD eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction ;\
 	rm var/cache/* -rf ;\
  	cp app/config/parameters.yml.docker app/config/parameters.yml ;\