FROM docker.infra.flowdat.com/fd3/sf-php:latest EXPOSE 8000 ADD . /opt/radius WORKDIR /opt/radius RUN rm -rf /opt/radius/vendor/* RUN rm -f app/config/parameters.yml RUN rm -f app/config/url_webservice.yml RUN rm -f app/config/hwioauthbundle/parameters.yml RUN cp app/config/parameters.yml.docker app/config/parameters.yml RUN cp app/config/url_webservice.yml.docker app/config/url_webservice.yml RUN cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml RUN cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml RUN rm -rf /opt/radius/app/config/parameters.yml /opt/radius/app/config/url_webservice.yml RUN chmod 0600 /opt/keys/* RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction --no-progress RUN apt-get install -yq php-soap RUN eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; git clone git@bitbucket.org:ikflowdat/json-wsdl.git /opt/json-wsdl ; cd /opt/json-wsdl ; composer install --no-scripts --no-interaction --no-progress RUN cp app/config/parameters.yml.docker app/config/parameters.yml ;\ cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\ cp app/config/url_webservice.yml.docker app/config/url_webservice.yml ;\ cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml ;\ cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\ cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml CMD eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction --no-progress;\ rm var/cache/* -rf ;\ cp app/config/parameters.yml.docker app/config/parameters.yml ;\ cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\ cp app/config/url_webservice.yml.docker app/config/url_webservice.yml ;\ cp app/config/hwioauthbundle/parameters.yml.docker app/config/hwioauthbundle/parameters.yml ;\ cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml ;\ cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml ;\ composer run-script post-install-cmd --no-interaction ;\ cat app/config/hwioauthbundle/parameters.yml ;\ php bin/console server:run 0.0.0.0 --env=dev