28 lines
601 B
Docker
28 lines
601 B
Docker
FROM php:8.4-fpm-alpine
|
|
|
|
# Install system dependencies
|
|
RUN apk add --no-cache \
|
|
libzip-dev \
|
|
zip \
|
|
unzip \
|
|
git \
|
|
curl \
|
|
libpng-dev \
|
|
libjpeg-turbo-dev \
|
|
freetype-dev \
|
|
oniguruma-dev \
|
|
libxml2-dev \
|
|
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
|
&& docker-php-ext-install -j$(nproc) gd zip pdo_mysql mysqli exif pcntl bcmath opcache
|
|
|
|
# Install Composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
# Set working directory
|
|
WORKDIR /var/www/html
|
|
|
|
# Expose port 9000 for PHP-FPM
|
|
EXPOSE 9000
|
|
|
|
# Start PHP-FPM
|
|
CMD ["php-fpm"] |