2023-01-15 18:47:38 +01:00
|
|
|
FROM php:8.2-cli
|
2020-03-09 00:42:17 +01:00
|
|
|
|
2023-01-30 02:12:37 +01:00
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
|
|
RUN true \
|
2020-11-04 13:04:34 +01:00
|
|
|
# Install main extension
|
2023-01-30 02:12:37 +01:00
|
|
|
&& apt-get install procps git zip vim libzip-dev libgmp-dev libevent-dev libssl-dev libnghttp2-dev libffi-dev -y \
|
2021-02-27 22:33:12 +01:00
|
|
|
&& docker-php-ext-install -j$(nproc) sockets zip gmp pcntl bcmath ffi mysqli pdo pdo_mysql \
|
2020-11-04 13:04:34 +01:00
|
|
|
# Install additional extension
|
|
|
|
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \
|
2023-07-23 17:45:40 +02:00
|
|
|
&& pecl bundle ev-beta && pecl bundle eio-beta \
|
2023-01-30 02:12:37 +01:00
|
|
|
&& docker-php-ext-install -j$(nproc) ev eio \
|
2021-11-25 23:06:29 +01:00
|
|
|
# Install PrimeModule for AuthKey generation speedup
|
|
|
|
&& git clone https://github.com/danog/PrimeModule-ext \
|
|
|
|
&& cd PrimeModule-ext && make -j$(nproc) \
|
|
|
|
&& make install \
|
|
|
|
&& cd ../ \
|
|
|
|
&& rm -rf PrimeModule-ext/ \
|
2020-11-04 13:04:34 +01:00
|
|
|
# Install composer
|
|
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
|
|
# Cleanup
|
2020-05-11 23:14:38 +02:00
|
|
|
&& docker-php-source delete \
|
|
|
|
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
|
2020-11-04 13:04:34 +01:00
|
|
|
&& rm -rf /usr/src
|
2020-11-04 11:48:54 +01:00
|
|
|
|
2023-01-30 02:12:37 +01:00
|
|
|
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait /usr/local/bin/docker-compose-wait
|
|
|
|
RUN chmod +x /usr/local/bin/docker-compose-wait
|
|
|
|
|
|
|
|
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/"
|
|
|
|
|
2020-03-09 00:42:17 +01:00
|
|
|
EXPOSE 9503
|
|
|
|
|
2023-01-16 11:55:53 +01:00
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|