21 lines
741 B
Docker
21 lines
741 B
Docker
FROM php:8.4-fpm
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
git curl zip unzip libpng-dev libonig-dev libxml2-dev libzip-dev libicu-dev \
|
|
&& docker-php-ext-install pdo_mysql gd zip pcntl intl bcmath exif \
|
|
&& pecl install redis && docker-php-ext-enable redis \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
|
&& apt-get install -y nodejs \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
|
|
|
|
WORKDIR /var/www/html
|
|
COPY . .
|
|
RUN composer install --no-dev --optimize-autoloader \
|
|
&& chown -R www-data:www-data storage bootstrap/cache
|