From e20ce3d9538f0ea6e3eecf01d693f0ab60e3588a Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 23 May 2024 18:28:18 +0200 Subject: [PATCH] Switch to upstream MadelineProto image --- Dockerfile | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce762c3..da59608 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,6 @@ -FROM php:8.3-cli +FROM hub.madelineproto.xyz/danog/madelineproto:latest -RUN apt-get update && apt-get upgrade -y -RUN true \ - # Install main extension - && apt-get install procps git zip vim libzip-dev libgmp-dev libuv1-dev libssl-dev libnghttp2-dev libffi-dev libicu-dev libonig-dev libxml2-dev libpng-dev -y \ - && docker-php-ext-install -j$(nproc) sockets bcmath mysqli pdo_mysql pcntl ffi intl gmp zip gd \ - # Install additional extension - && mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \ - && pecl bundle uv && pecl bundle igbinary \ - && docker-php-ext-install -j$(nproc) uv igbinary \ - # Install PrimeModule for AuthKey generation speedup - && git clone https://github.com/danog/PrimeModule-ext \ - && cd PrimeModule-ext && make -j$(nproc) \ - && make install \ - && cd ../ \ - && rm -rf PrimeModule-ext/ \ - # Install composer - && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ - # Cleanup - && docker-php-source delete \ - && apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \ - && rm -rf /usr/src +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait /usr/local/bin/docker-compose-wait