1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-12-14 07:27:20 +01:00
MadelineProto/tests/dockerfiles/Dockerfile.alpine

31 lines
910 B
Docker
Raw Normal View History

2023-12-31 13:42:58 +01:00
FROM php:8.3-fpm-alpine
2023-12-29 16:50:34 +01:00
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++
2023-12-31 13:42:58 +01:00
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
2023-08-20 17:21:27 +02:00
2023-12-31 13:42:58 +01:00
RUN chmod +x /usr/local/bin/install-php-extensions && \
2024-04-07 14:39:55 +02:00
install-php-extensions pcntl uv-beta ffi pgsql memprof intl gmp mbstring pdo_mysql xml dom iconv zip igbinary gd && \
2023-12-31 13:42:58 +01:00
rm /usr/local/bin/install-php-extensions
2023-05-28 19:11:30 +02:00
2023-12-31 13:42:58 +01:00
RUN apk add --no-cache ffmpeg nghttp2 jemalloc
2023-12-23 20:35:35 +01:00
2023-12-31 13:42:58 +01:00
ENV LD_PRELOAD=libjemalloc.so.2
2023-12-23 20:35:35 +01:00
2023-12-31 13:42:58 +01:00
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
2023-12-29 16:50:34 +01:00
2023-12-31 13:55:56 +01:00
ADD ./tests/jit.php /jit.php
RUN php /jit.php && rm /jit.php
2023-05-30 22:57:41 +02:00
WORKDIR /app
2023-05-30 22:40:20 +02:00
CMD ["php", "/app/bot.php"]