-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·40 lines (32 loc) · 992 Bytes
/
Dockerfile
File metadata and controls
executable file
·40 lines (32 loc) · 992 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM php:7.1.5-apache
# Setup environment.
ENV DEBIAN_FRONTEND noninteractive
RUN a2enmod rewrite
# Install the PHP extensions we need
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mbstring pdo pdo_mysql pdo_pgsql opcache zip sockets
# Installtion.
RUN apt-get update -y && apt-get install -y \
software-properties-common \
git \
wget \
zip \
vim \
ruby-dev \
rubygems \
php5-curl \
php5-cli \
php5-mysql \
mysql-server \
mysql-client
# Install Composer.
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
# Install Drush
RUN export PATH="$HOME/vendor/bin:$PATH" \
&& cd $HOME \
&& composer require drush/drush
# Fake the sending mail in order to avoid errors.
RUN echo 'sendmail_path = /bin/true' >> /etc/php.ini