forked from andreaskoch/dockerized-magento
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
66 lines (55 loc) · 1.65 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
COPY php/php.ini /usr/local/etc/php/php.ini
ENV INSTALLER_VERSION 1.0.0
# Install Tools
RUN apt-get update && \
apt-get install -y \
vim \
telnet \
netcat \
git-core \
zip && \
apt-get purge -y --auto-remove
# Add utility scripts
COPY bin/substitute-env-vars.sh /bin/substitute-env-vars.sh
RUN chmod +x /bin/substitute-env-vars.sh
# Add the Installer
COPY bin/install.sh /bin/install.sh
RUN chmod +x /bin/install.sh
# Install magerun
RUN curl -o magerun https://raw.githubusercontent.com/netz98/n98-magerun/master/n98-magerun.phar && \
chmod +x ./magerun && \
cp ./magerun /usr/local/bin/ && \
rm ./magerun && \
apt-get update && \
apt-get install -qy mysql-client && \
apt-get purge -y --auto-remove
# Add a custom magerun configuration
COPY magerun/n98-magerun.yaml.tmpl /etc/n98-magerun.yaml.tmpl
# Add custom Magento configuration files
COPY magento/local.xml.tmpl /etc/local.xml.tmpl
COPY magento/fpc.xml.tmpl /etc/fpc.xml.tmpl
# Install composer
RUN curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=bin
ENTRYPOINT ["/bin/install.sh"]