1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:39:01 +01:00

More debugging attempts

This commit is contained in:
Daniil Gentili 2023-12-29 16:50:34 +01:00
parent c25e3f9198
commit 232e81f827
2 changed files with 17 additions and 9 deletions

View File

@ -259,14 +259,8 @@ STOPSIGNAL SIGQUIT
EXPOSE 9000
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++
ENV CFLAGS="-g -O0"
ENV CXXFLAGS="-g -O0"
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
@ -276,6 +270,18 @@ RUN chmod +x /usr/local/bin/install-php-extensions && \
RUN apk add --no-cache ffmpeg nghttp2 jemalloc
ENV CFLAGS="-g -O0 -fsanitize=address"
ENV CXXFLAGS="-g -O0 -fsanitize=address"
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++
ENV LD_PRELOAD=libjemalloc.so.2
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
@ -284,6 +290,8 @@ ADD ./tests/jit.php /jit.php
RUN php /jit.php && rm /jit.php
RUN apk add llvm
WORKDIR /app
CMD ["php", "/app/bot.php"]

View File

@ -3,7 +3,7 @@ memory_limit = -1
display_errors = On
display_startup_errors = On
ffi.enable=true
ffi.enable=0
;zend_extension=opcache