ikarusbot/Dockerfile

16 lines
408 B
Docker
Raw Permalink Normal View History

2025-01-10 20:34:17 +02:00
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"]