-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (24 loc) · 1.15 KB
/
Dockerfile
File metadata and controls
38 lines (24 loc) · 1.15 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
FROM ubuntu
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install lamp-server^
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget supervisor
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install unzip pwgen
RUN DEBIAN_FRONTEND=noninteractive sudo apt-get -y install mcrypt php5-mcrypt curl php5-curl php5-gd
RUN DEBIAN_FRONTEND=noninteractive php5enmod mcrypt
ADD adminer.php /var/www/html/magento/
ADD my.cnf /etc/mysql/conf.d/my.cnf
ADD start-apache2.sh /start-apache2.sh
ADD start-mysqld.sh /start-mysqld.sh
ADD supervisord-apache2.conf /etc/supervisor/conf.d/supervisord-apache2.conf
ADD supervisord-mysqld.conf /etc/supervisor/conf.d/supervisord-mysqld.conf
ADD create_mysql_admin_user.sh /create_mysql_admin_user.sh
RUN chmod 755 /*.sh
RUN rm -rf /var/lib/mysql/*
EXPOSE 80
EXPOSE 3306
RUN cd /var/www/html && wget https://github.com/OpenMage/magento-mirror/archive/magento-1.9.zip
RUN cd /var/www/html && unzip magento-1.9.zip
RUN cd /var/www/html && chown -R www-data:www-data magento
ADD startupscript.sh /var/www/startupscript.sh
RUN chmod 755 /var/www/*.sh
CMD ["/var/www/startupscript.sh"]