1234567891011121314151617181920212223242526272829303132 |
- FROM docker.infra.flowdat.com/fd3/sf-php:latest
- EXPOSE 8000
- ADD . /opt/stats
- 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
- 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 ;\
- 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 ;\
- bin/console server:run 0.0.0.0
|