Pārlūkot izejas kodu

más parecido a ftth/Dockerfile

Luciano Andrade 7 gadi atpakaļ
vecāks
revīzija
9423ebe75a
1 mainītis faili ar 11 papildinājumiem un 8 dzēšanām
  1. 11 8
      Dockerfile

+ 11 - 8
Dockerfile

@@ -7,17 +7,20 @@ RUN rm /opt/stats/var/cache/* -rf
 
 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 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 ;\
      rm var/cache/* -rf ;\