forked from andreaskoch/dockerized-magento
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (49 loc) · 1.26 KB
/
Dockerfile
File metadata and controls
57 lines (49 loc) · 1.26 KB
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
FROM php:5.6
# Install PHP extension dependencies
RUN buildDeps=" \
libpng-dev \
libjpeg-dev \
libmcrypt-dev \
libxml2-dev \
libfreetype6-dev \
freetype* \
"; \
set -x \
&& apt-get update \
&& apt-get install -y $buildDeps --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Install PHP extensions
RUN docker-php-ext-install \
gd \
mbstring \
mysqli \
mcrypt \
mysql \
pdo_mysql \
soap \
zip
# Configure GD extension
RUN docker-php-ext-configure gd \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--with-freetype-dir
# Install MySQL
RUN 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
# Install Git
RUN apt-get update -qy \
&& apt-get install -qy git-core \
&& apt-get purge -y --auto-remove
# Install magerun
RUN curl -o magerun https://files.magerun.net/n98-magerun.phar \
&& chmod +x ./magerun \
&& ./magerun selfupdate \
&& cp ./magerun /usr/local/bin/ \
&& rm ./magerun
# Create app directories
RUN mkdir /var/www \
&& mkdir /var/www/html \
&& mkdir /var/www/html/web \