kumbiaphp-workerman-mysql.dockerfile 1.1 KB

123456789101112131415161718192021222324252627
  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 git unzip php7.4 php7.4-common php7.4-cli php7.4-mysql > /dev/null
  7. RUN apt-get install -yqq composer > /dev/null
  8. RUN apt-get install -y php-pear php-dev libevent-dev > /dev/null
  9. RUN printf "\n\n /usr/lib/x86_64-linux-gnu/\n\n\nno\n\n\n" | pecl install event > /dev/null && echo "extension=event.so" > /etc/php/7.4/cli/conf.d/event.ini
  10. COPY deploy/conf/cliphp.ini /etc/php/7.4/cli/php.ini
  11. ADD ./ /kumbiaphp
  12. WORKDIR /kumbiaphp
  13. RUN git clone -b dev --single-branch --depth 1 https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
  14. RUN git clone -b master --single-branch --depth 1 https://github.com/KumbiaPHP/ActiveRecord.git vendor/Kumbia/ActiveRecord
  15. RUN sed -i "s|header(|\\\Workerman\\\Protocols\\\Http::header(|g" bench/app/controllers/*.php
  16. RUN composer install --optimize-autoloader --classmap-authoritative --no-dev --quiet
  17. CMD php server.php start