Created
September 3, 2019 14:40
-
-
Save Blackbam/ebd33dc48fdf62d2a8140e7ac345723b to your computer and use it in GitHub Desktop.
Docker php7.3-fpm with basic libs
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.3-fpm | |
# install git | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends git | |
#install some base extensions | |
RUN apt-get install -y \ | |
g++ \ | |
git \ | |
curl \ | |
imagemagick \ | |
libcurl3-dev \ | |
libjpeg-dev \ | |
libmagickwand-dev \ | |
mariadb-client \ | |
openssh-client \ | |
nano \ | |
unzip \ | |
redis-server \ | |
libzip-dev \ | |
zlib1g-dev \ | |
zip \ | |
libpng-dev \ | |
exiftool \ | |
libfreetype6-dev \ | |
libjpeg62-turbo-dev \ | |
libmcrypt-dev \ | |
libicu-dev \ | |
libpq-dev \ | |
libxpm-dev \ | |
libvpx-dev \ | |
libxml2-dev | |
RUN docker-php-ext-install -j$(nproc) \ | |
pdo \ | |
pcntl \ | |
soap \ | |
zip \ | |
mysqli \ | |
curl \ | |
bcmath \ | |
exif \ | |
gd \ | |
iconv \ | |
intl \ | |
mbstring \ | |
opcache \ | |
pdo_mysql | |
# Install Imagick | |
RUN apt-get update && apt-get install -y \ | |
libmagickwand-dev --no-install-recommends \ | |
&& pecl install imagick \ | |
&& docker-php-ext-enable imagick | |
# Install Composer | |
RUN echo "Install Composer" | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN composer --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment