123456789101112131415161718192021222324252627282930313233 |
- FROM docker.infra.flowdat.com/fd3/sf-php:latest
- EXPOSE 8000
- ADD . /opt/ftth
- WORKDIR /opt/ftth
- RUN rm -rf /opt/ftth/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/ftth/app/config/parameters.yml /opt/ftth/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
- 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 ;\
- composer run-script post-install-cmd --no-interaction ;\
- cat app/config/hwioauthbundle/parameters.yml ; bin/console server:run 0.0.0.0 --env=dev
|