Last active
January 15, 2021 09:29
-
-
Save sergioska/c015b65efb7634cb5c806e0430084b2f to your computer and use it in GitHub Desktop.
php-fpm docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-fpm | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
libpng-dev \ | |
libzip-dev \ | |
libicu-dev \ | |
libzip4 \ | |
&& pecl install xdebug \ | |
&& docker-php-ext-install opcache \ | |
&& docker-php-ext-enable xdebug \ | |
&& docker-php-ext-install pdo_mysql \ | |
&& docker-php-ext-install exif \ | |
&& docker-php-ext-install zip \ | |
&& docker-php-ext-install gd \ | |
&& docker-php-ext-install intl \ | |
&& docker-php-ext-install mysqli | |
# Clear cache | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | |
WORKDIR /srv/app | |
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini | |
RUN echo "date.timezone=Europe/Rome" >> /usr/local/etc/php/php.ini | |
EXPOSE 9000 | |
CMD ["php-fpm"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment