2023-05-30 18:51:22 +02:00
|
|
|
FROM php:8.2-fpm-alpine
|
2023-05-27 18:35:31 +02:00
|
|
|
|
2023-06-13 19:58:20 +02:00
|
|
|
RUN apk add --no-cache make g++ && \
|
2023-05-27 18:35:31 +02:00
|
|
|
curl -sSLf https://github.com/danog/PrimeModule-ext/archive/refs/tags/2.0.tar.gz | tar -xz && \
|
|
|
|
cd PrimeModule-ext-2.0 && \
|
|
|
|
make -j$(nproc) && \
|
|
|
|
make install && \
|
|
|
|
cd .. && \
|
|
|
|
rm -r PrimeModule-ext-2.0 && \
|
|
|
|
apk del make g++
|
|
|
|
|
2023-05-29 21:02:13 +02:00
|
|
|
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
2023-05-27 18:35:31 +02:00
|
|
|
|
2023-06-13 20:05:33 +02:00
|
|
|
RUN apk add --no-cache libuv libuv-dev autoconf automake gcc musl-dev make && chmod +x /usr/local/bin/install-php-extensions && \
|
2023-06-13 19:58:20 +02:00
|
|
|
curl -L https://github.com/amphp/ext-uv/archive/refs/heads/master.tar.gz | tar -xz && \
|
2023-06-13 20:41:18 +02:00
|
|
|
cd ext-uv-master && phpize && ./configure && make -j$(nproc) && make install && cd .. \
|
2023-06-13 20:05:33 +02:00
|
|
|
rm -r ext-uv-master && apk del libuv-dev autoconf automake gcc musl-dev make && \
|
2023-06-13 19:58:20 +02:00
|
|
|
install-php-extensions ffi pq memprof intl gmp mbstring pdo_mysql xml dom zip opcache && \
|
2023-05-27 18:35:31 +02:00
|
|
|
rm /usr/local/bin/install-php-extensions
|
|
|
|
|
2023-05-28 19:41:46 +02:00
|
|
|
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
2023-05-28 19:11:30 +02:00
|
|
|
|
2023-05-30 22:57:41 +02:00
|
|
|
WORKDIR /app
|
|
|
|
|
2023-05-30 22:40:20 +02:00
|
|
|
CMD ["php", "/app/bot.php"]
|