mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 21:14:43 +01:00
Add some nice tools
This commit is contained in:
parent
91acd82d4e
commit
3e61914fe6
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit d950adfa36734a765ef91bf7de6d9b2b91e9d22d
|
||||
Subproject commit 67fdacb69e30b7a30619a1320ec8e2bef0966fd9
|
@ -120,7 +120,6 @@ trait AuthKeyHandler
|
||||
$ok = false;
|
||||
$pq = Tools::unpackSignedLong(\strrev($pq_bytes));
|
||||
foreach ([
|
||||
'factor_single',
|
||||
'native_single_cpp',
|
||||
'python_single_alt',
|
||||
'python_single',
|
||||
|
@ -15,6 +15,16 @@ 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
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
|
||||
php composer-setup.php && \
|
||||
php -r "unlink('composer-setup.php');" && \
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
||||
RUN apk add --no-cache nano unzip
|
||||
|
||||
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["php", "/app/bot.php"]
|
||||
|
@ -15,6 +15,16 @@ 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
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
|
||||
php composer-setup.php && \
|
||||
php -r "unlink('composer-setup.php');" && \
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
||||
RUN apt-get -y install nano unzip && apt-get clean
|
||||
|
||||
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["php", "/app/bot.php"]
|
||||
|
Loading…
Reference in New Issue
Block a user