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.
 

45 lines
1.1 KiB

FROM php:7.4-fpm
# Set working directory
WORKDIR /var/www
RUN chmod 777 /var/www -R
# Rebuild the image and set appropriate permissions
RUN chown www-data:www-data /usr/local/etc/php-fpm.d/www.conf
# 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 sockets
RUN pecl install redis && docker-php-ext-enable redis
#
RUN apt install libjpeg-dev \
&& docker-php-ext-configure gd --with-jpeg \
&& docker-php-ext-install gd
# get latest nodejs
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g bower
# Get latest Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# ENTRYPOINT [ "cron", "-f" ]
EXPOSE 9000
CMD ["php-fpm"]