Browse Source

más parecido a ftth/Dockerfile

Luciano Andrade 7 years ago
parent
commit
9423ebe75a
1 changed files with 11 additions and 8 deletions
  1. 11 8
      Dockerfile

+ 11 - 8
Dockerfile

@@ -7,17 +7,20 @@ RUN rm /opt/stats/var/cache/* -rf
 
 
 WORKDIR /opt/stats
 WORKDIR /opt/stats
 
 
+RUN rm -rf /opt/ftth/vendor/*
+RUN rm -rf app/config/parameters.yml 
+RUN rm -rf app/config/bundles/hwi/oauth-bundle/parameters.yml 
+RUN rm -rf app/config/bundles/ik/webservice-bundle/parameters.yml 
+ 
+RUN cp app/config/parameters.yml.docker app/config/parameters.yml 
+RUN cp app/config/bundles/hwi/oauth-bundle/parameters.yml.docker app/config/bundles/hwi/oauth-bundle/parameters.yml 
+RUN cp app/config/bundles/ik/webservice-bundle/parameters.yml.docker app/config/bundles/ik/webservice-bundle/parameters.yml 
+ 
+
 RUN cp -r keys /opt/keys/
 RUN cp -r keys /opt/keys/
 RUN chmod 0600 /opt/keys/*
 RUN chmod 0600 /opt/keys/*
 
 
-RUN 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 ;\
-     cp app/config/bundles/hwi/oauth-bundle/parameters.yml.docker app/config/bundles/hwi/oauth-bundle/parameters.yml ;\
-     cp app/config/bundles/ik/webservice-bundle/parameters.yml.docker app/config/bundles/ik/webservice-bundle/parameters.yml ;\
-     composer dump-autoload ;\
-     composer run-script symfony-scripts --no-interaction 
- 
+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 ;\
 CMD  eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction ;\
      rm var/cache/* -rf ;\
      rm var/cache/* -rf ;\