-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathDockerfile-cli
25 lines (22 loc) · 1.23 KB
/
Dockerfile-cli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM php:7.3-alpine
MAINTAINER drupal-docker
WORKDIR /var/www/html
RUN apk add --no-cache --virtual .dd-build-deps libpng-dev freetype-dev libjpeg-turbo-dev postgresql-dev libxml2-dev libzip-dev $PHPIZE_DEPS \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ \
&& docker-php-ext-install gd mbstring pdo_mysql pdo_pgsql zip \
&& docker-php-ext-install opcache bcmath soap \
&& pecl install redis-3.1.1 \
&& docker-php-ext-enable redis \
&& curl -sS https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& curl -L -o drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar \
&& chmod +x drush.phar \
&& mv drush.phar /usr/local/bin/drush \
&& curl -L -o drupal.phar https://drupalconsole.com/installer \
&& chmod +x drupal.phar \
&& mv drupal.phar /usr/local/bin/drupal \
&& echo "export PATH=~/.composer/vendor/bin:\$PATH" >> ~/.bash_profile \
&& apk add --no-cache sudo git libpng freetype libjpeg libpq libxml2 libzip mysql-client openssh-client rsync patch \
&& apk del .dd-build-deps
COPY drupal-*.ini /usr/local/etc/php/conf.d/
COPY cli/drupal-*.ini /usr/local/etc/php/conf.d/