-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
48 lines (47 loc) · 1.41 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
FROM amazonlinux:2017.09
RUN echo "OS dependencies" && \
yum -y install \
git \
unzip && \
echo "NETWORKING=yes" > /etc/sysconfig/network && \
echo "Supervisord dependencies" && \
curl https://bootstrap.pypa.io/ez_setup.py | /usr/bin/python && \
easy_install pip && \
pip install supervisor && \
echo "Apache and MySQL dependencies" && \
yum -y install \
httpd24 \
mod24_ssl \
mysql \
mysql-server && \
echo "Start mysqld to create initial tables" && \
service mysqld start && \
echo "PHP dependencies" && \
yum install -y \
php71 \
php71-cli \
php71-dbg \
php71-gd \
php71-intl \
php71-json \
php71-mbstring \
php71-mcrypt \
php71-mysqlnd \
php71-opcache \
php71-pdo \
php71-pecl-redis \
php71-zip && \
echo "Install composer" && \
curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer && \
echo "Install prestissimo to speed up composer installation" && \
composer global require hirak/prestissimo && \
echo "NodeJS dependencies" && \
curl --silent --location https://rpm.nodesource.com/setup_9.x | bash - && \
yum -y install \
nodejs \
npm && \
echo "Directory setup" && \
mkdir -p /home/develop/logs && \
mkdir -p /home/develop/apps/htdocs && \
mkdir -p /etc/httpd/certs