浏览代码

agregue composer install al docker build

Luciano Andrade 7 年之前
父节点
当前提交
43fd25ee80
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 ;\