forked from paimpozhil/docker-magento
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (23 loc) · 1.13 KB
/
Copy pathDockerfile
File metadata and controls
45 lines (23 loc) · 1.13 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
FROM centos:centos6
# because theses where the most stable php 5.3.x repos are!
MAINTAINER usman@techtraits.com
# Centos default image for some reason does not have tools like Wget/Tar/etc so lets add them
RUN yum -y install wget
# EPEL has good RPM goodies!
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum -y install which openssh-server php-mysql php-gd php-mcrypt php-zip php-xml php-iconv php-curl php-soap php-simplexml php-pdo php-dom php-cli php-fpm nginx
RUN yum -y install tar mysql
ADD default.conf /etc/nginx/conf.d/default.conf
RUN chkconfig php-fpm on
RUN chkconfig nginx on
#install magento files
RUN cd /tmp && wget http://www.magentocommerce.com/downloads/assets/1.9.0.1/magento-1.9.0.1.tar.gz
RUN cd /tmp && tar -zxvf magento-1.9.0.1.tar.gz
RUN mv /tmp/magento /var/www
RUN cd /var/www/ && chmod -R o+w media var && chmod o+w app/etc && rm -f magento-*tar.gz
ADD mage-cache.xml /var/www/app/etc/mage-cache.xml
ADD seturl.php /var/www/seturl.php
ADD start.sh /start.sh
RUN chmod 0755 /start.sh
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
CMD /start.sh