content: FROM ubuntu:24.04
  
  ARG DEBIAN_FRONTEND=noninteractive
  
  RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
  RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
  RUN apt-get update -yqq && apt-get install -yqq git unzip wget curl build-essential php8.4-cli php8.4-mbstring php8.4-curl php8.4-xml php8.4-pgsql > /dev/null
  
  RUN apt-get install -y php8.4-dev libevent-dev > /dev/null
  RUN wget http://pear.php.net/go-pear.phar --quiet && php go-pear.phar
  RUN pecl install event-3.1.4 > /dev/null && echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
  
  COPY php-jit.ini /etc/php/8.4/cli/php.ini
  
  ADD ./ /mixphp
  WORKDIR /mixphp
  
  RUN sed -i "s|Benchmark();|BenchmarkRaw();|g" /mixphp/routes/index.php
  
  COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
  RUN composer install --no-dev --classmap-authoritative --quiet > /dev/null
  RUN composer dumpautoload -o
  
  RUN mkdir -p /mixphp/runtime/logs
  RUN chmod -R 777 /mixphp/runtime/logs
  
  EXPOSE 2345
  
  CMD php /mixphp/bin/workerman.php start
  