-
Notifications
You must be signed in to change notification settings - Fork 144
/
Dockerfile
46 lines (42 loc) · 1.15 KB
/
Dockerfile
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
40
41
42
43
44
45
46
FROM php:5.6
# Configure PHP
RUN buildDeps=" \
libpng12-dev \
libjpeg-dev \
libmcrypt-dev \
libxml2-dev \
freetype* \
"; \
set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure \
gd --with-png-dir=/usr --with-jpeg-dir=/usr --with-freetype-dir \
&& docker-php-ext-install \
gd \
mbstring \
mysqli \
mcrypt \
mysql \
pdo_mysql \
zip \
&& apt-get purge -y --auto-remove
# Install Tools
RUN apt-get update && \
apt-get install -y \
vim \
telnet \
netcat \
git-core \
zip && \
apt-get purge -y --auto-remove
# Install magerun
RUN curl -o magerun https://raw.githubusercontent.com/netz98/n98-magerun/master/n98-magerun.phar && \
chmod +x ./magerun && \
./magerun selfupdate && \
cp ./magerun /usr/local/bin/ && \
rm ./magerun && \
apt-get update && \
apt-get install -qy mysql-client && \
apt-get purge -y --auto-remove
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=bin