You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
858 B

FROM php:8.4-fpm
# Set working directory
WORKDIR /var/www
# Install dependencies
RUN apt-get update && apt-get install -y \
libssl-dev \
build-essential \
libpng-dev \
libjpeg62-turbo-dev \
libfreetype6-dev \
locales \
zip \
jpegoptim optipng pngquant gifsicle \
vim \
unzip \
git \
curl \
wget \
nano \
libonig-dev \
libzip-dev \
libicu-dev \
sendmail \
libxml2-dev \
cron
# Install extensions
RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl intl mysqli gd
RUN docker-php-ext-install sockets
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# get latest nodejs
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get install -y nodejs
# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]