28 lines
622 B
Docker
28 lines
622 B
Docker
FROM php:8.3-fpm
|
|
|
|
ENV MAKEFLAGS="-j$(nproc)"
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y git zip unzip curl \
|
|
libicu-dev libzip-dev libcurl4-openssl-dev libxml2-dev libpq-dev libonig-dev
|
|
|
|
RUN docker-php-ext-install intl zip bcmath xml pdo pdo_pgsql dom mbstring curl
|
|
|
|
# Install xdebug and redis extensions if needed
|
|
#
|
|
# RUN pecl install xdebug redis-6.2.0
|
|
# RUN docker-php-ext-enable redis
|
|
|
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
|
|
|
# xDebug configuration
|
|
#
|
|
# COPY ./usr/local/etc/php/conf.d/* /usr/local/etc/php/conf.d/
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
COPY composer.* .
|
|
RUN composer install --no-dev
|
|
|
|
COPY . .
|