mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 08:18:59 +01:00
26 lines
1.0 KiB
Docker
26 lines
1.0 KiB
Docker
FROM php:8.2-fpm-alpine
|
|
|
|
RUN apk add --no-cache make g++ && \
|
|
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++
|
|
|
|
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
|
|
|
RUN apk add --no-cache libuv libuv-dev autoconf automake gcc musl-dev make && chmod +x /usr/local/bin/install-php-extensions && \
|
|
curl -L https://github.com/amphp/ext-uv/archive/refs/heads/master.tar.gz | tar -xz && \
|
|
cd ext-uv-master && phpize && ./configure && make -j$(nproc) && cd .. \
|
|
rm -r ext-uv-master && apk del libuv-dev autoconf automake gcc musl-dev make && \
|
|
install-php-extensions ffi pq memprof intl gmp mbstring pdo_mysql xml dom zip opcache && \
|
|
rm /usr/local/bin/install-php-extensions
|
|
|
|
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["php", "/app/bot.php"]
|