FROM docker.infra.flowdat.com/fd3/sf-php:latest EXPOSE 8000 ADD . /opt/cablemodem WORKDIR /opt/cablemodem RUN rm -rf /opt/cablemodem/vendor/* RUN rm -f app/config/parameters.yml RUN rm -f app/config/bundles/hwi/oauth-bundle/parameters.yml RUN rm -f app/config/bundles/ik/audit-bundle/parameters.yml RUN rm -f app/config/bundles/ik/base-admin-bundle/parameters.yml RUN rm -f app/config/bundles/ik/device-bundle/parameters.yml RUN rm -f 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/audit-bundle/parameters.yml.dist app/config/bundles/ik/audit-bundle/parameters.yml RUN cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml RUN cp app/config/bundles/ik/device-bundle/parameters.yml.docker app/config/bundles/ik/device-bundle/parameters.yml RUN cp app/config/bundles/ik/webservice-bundle/parameters.yml.docker app/config/bundles/ik/webservice-bundle/parameters.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 CMD eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ;\ composer install --no-scripts --no-interaction --no-progress;\ rm var/cache/* -rf ;\ composer run-script post-install-cmd --no-interaction ;\ php bin/console server:run 0.0.0.0 --env=dev