25 lines
577 B
Docker
Executable File
25 lines
577 B
Docker
Executable File
FROM php:8.2-fpm
|
|
|
|
WORKDIR /var/www
|
|
|
|
# System dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
git \
|
|
curl \
|
|
zip \
|
|
unzip \
|
|
libpng-dev \
|
|
libonig-dev \
|
|
libxml2-dev
|
|
|
|
# PHP Extensions
|
|
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
&& apt-get install -y nodejs
|
|
# RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
|
|
|
|
# Install Composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
CMD ["php-fpm"]
|