Skip to content

Instantly share code, notes, and snippets.

@Blackbam
Created September 3, 2019 14:40
Show Gist options
  • Save Blackbam/ebd33dc48fdf62d2a8140e7ac345723b to your computer and use it in GitHub Desktop.
Save Blackbam/ebd33dc48fdf62d2a8140e7ac345723b to your computer and use it in GitHub Desktop.
Docker php7.3-fpm with basic libs
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