mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:34:44 +01:00
More debugging attempts
This commit is contained in:
parent
facf5fb368
commit
3d383cecf5
@ -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"]
|
||||
|
@ -3,7 +3,7 @@ memory_limit = -1
|
||||
display_errors = On
|
||||
display_startup_errors = On
|
||||
|
||||
ffi.enable=true
|
||||
ffi.enable=0
|
||||
|
||||
;zend_extension=opcache
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user