Skip to content

Commit

Permalink
gd configuration, add apt-get autoremove
Browse files Browse the repository at this point in the history
  • Loading branch information
blueo committed Mar 1, 2018
1 parent 5cbc3a4 commit 715b446
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 5.6/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ RUN apt-get update -y && apt-get install -y \
g++ \
openssh-client \
--no-install-recommends && \
apt-get autoremove -y && \
rm -r /var/lib/apt/lists/*

# Install PHP Extensions
RUN docker-php-ext-configure intl && \
docker-php-ext-configure mysql --with-mysql=mysqlnd && \
docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j$(nproc) \
bcmath \
intl \
Expand Down
2 changes: 2 additions & 0 deletions 5.6/platform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,15 @@ RUN apt-get update -y && apt-get install -y \
pecl install imagick-3.4.3 && \
apt-get remove -y libmagickwand-dev && \
apt-get install -y libmagickwand-6.q16-2 && \
apt-get autoremove -y && \
rm -r /var/lib/apt/lists/*

# Install PHP Extensions
RUN docker-php-ext-configure intl && \
docker-php-ext-configure mysql --with-mysql=mysqlnd && \
docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-enable xdebug && \
docker-php-ext-enable imagick && \
sed -i '1 a xdebug.remote_autostart=true' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
Expand Down
2 changes: 2 additions & 0 deletions 7.1/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ RUN apt-get update -y && apt-get install -y \
g++ \
openssh-client \
--no-install-recommends && \
apt-get autoremove -y && \
rm -r /var/lib/apt/lists/*

# Install PHP Extensions
RUN docker-php-ext-configure intl && \
docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j$(nproc) \
bcmath \
intl \
Expand Down
2 changes: 2 additions & 0 deletions 7.1/platform/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ RUN apt-get update -y && apt-get install -y \
pecl install imagick-3.4.3 && \
apt-get remove -y libmagickwand-dev && \
apt-get install -y libmagickwand-6.q16-2 && \
apt-get autoremove -y && \
rm -r /var/lib/apt/lists/*

# Install PHP Extensions
RUN docker-php-ext-configure intl && \
docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-enable xdebug && \
docker-php-ext-enable imagick && \
sed -i '1 a xdebug.remote_autostart=true' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && \
Expand Down

0 comments on commit 715b446

Please sign in to comment.