mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:14:38 +01:00
23 lines
786 B
Docker
23 lines
786 B
Docker
# Either "" or "danog/" to pull the risc-v images
|
|
ARG IMG_PREFIX
|
|
FROM ${IMG_PREFIX}php:fpm-alpine
|
|
|
|
RUN apk add 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 chmod +x /usr/local/bin/install-php-extensions && \
|
|
install-php-extensions ffi pq ev-beta eio-beta intl gmp mbstring pdo_mysql xml dom curl zip opcache && \
|
|
rm /usr/local/bin/install-php-extensions
|
|
|
|
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
|
|
|
CMD ["php"]
|