ubiquity-roadrunner-mysql.dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. FROM ubuntu:20.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
  4. RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
  5. RUN apt-get update -yqq > /dev/null && \
  6. apt-get install -yqq php7.4 php7.4-common php7.4-cgi php-curl php7.4-mysql > /dev/null
  7. RUN apt-get install -yqq composer > /dev/null
  8. RUN apt-get install -y php-pear php-dev > /dev/null
  9. COPY deploy/conf/php-async.ini /etc/php/7.4/cgi/php.ini
  10. ADD ./ /ubiquity
  11. WORKDIR /ubiquity
  12. RUN chmod -R 777 /ubiquity
  13. RUN ["chmod", "+x", "deploy/run/install-composer.sh"]
  14. RUN deploy/run/install-composer.sh
  15. RUN apt-get update -yqq > /dev/null && \
  16. apt-get install -yqq git unzip > /dev/null
  17. RUN php composer.phar require lapinskas/roadrunner-ubiquity:dev-master --quiet
  18. RUN vendor/bin/rr get
  19. RUN php composer.phar install --optimize-autoloader --classmap-authoritative --no-dev --quiet
  20. COPY deploy/roadrunner/envwrapper.sh /bin/
  21. RUN ln -s /ubiquity/.ubiquity/.rr.yml /ubiquity/.rr.yml
  22. RUN chmod 755 /bin/envwrapper.sh
  23. RUN chmod 777 -R /ubiquity/.ubiquity/*
  24. #RUN echo "opcache.preload=/ubiquity/app/config/preloader.script.php" >> /etc/php/7.4/cgi/php.ini
  25. COPY deploy/conf/roadrunner/mysql/rrServices.php app/config/rrServices.php
  26. CMD envwrapper.sh /ubiquity/rr serve