22 lines
562 B
Text
22 lines
562 B
Text
|
|
FROM php:8.3-cli
|
||
|
|
|
||
|
|
# Install system dependencies
|
||
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
|
|
libfreetype6-dev \
|
||
|
|
libjpeg62-turbo-dev \
|
||
|
|
libpng-dev \
|
||
|
|
unzip \
|
||
|
|
git \
|
||
|
|
curl \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
# Install and configure GD extension
|
||
|
|
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||
|
|
&& docker-php-ext-install -j$(nproc) gd
|
||
|
|
|
||
|
|
# Install Composer
|
||
|
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||
|
|
|
||
|
|
# Set working directory
|
||
|
|
WORKDIR /workspace
|