FROM php:8.2 WORKDIR /bot RUN apt update && apt install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev git unzip RUN docker-php-ext-configure gd --with-freetype --with-jpeg && docker-php-ext-install -j$(nproc) gd RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer COPY composer.json /bot RUN composer install COPY . /bot CMD ["php", "bot.php"]