12345678910111213141516171819202122232425262728293031323334353637 |
- FROM docker.infra.flowdat.com/fd3/sf-php:latest
- EXPOSE 8000
- ADD . /opt/stats
- RUN rm /opt/stats/var/cache/* -rf
- RUN cp /opt/stats/app/config/bundles/ik/base-admin-bundle/parameters.yml.dist /opt/stats/app/config/bundles/ik/base-admin-bundle/parameters.yml
- 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
- RUN 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 ;\
- cp app/config/bundles/ik/base-admin-bundle/parameters.yml.dist app/config/bundles/ik/base-admin-bundle/parameters.yml
- RUN apt-get update && apt-get install -yq gdal-bin
- CMD eval $(ssh-agent) ; ssh-add /opt/keys/bitbucket.id_rsa ; composer install --no-scripts --no-interaction ;\
- rm var/cache/* -rf ;\
- composer dump-autoload ;\
- composer run-script post-install-cmd --no-interaction ;\
- bin/console server:run 0.0.0.0
-
|