16 lines
408 B
Docker
16 lines
408 B
Docker
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"]
|