forked from ysilvela/docker-magento
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (36 loc) · 1.4 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 dell/lamp-base:1.2
MAINTAINER Yago Silvela <[email protected]>
# Do an update of the base packages.
RUN apt-get update --fix-missing
RUN DEBIAN_FRONTEND=noninteractive \
apt-get -y install \
php5-mcrypt \
openssh-server \
php5-curl \
php5-gd
# Clean package cache
RUN apt-get -y clean && rm -rf /var/lib/apt/lists/*
RUN php5enmod mcrypt
# Update Apache permissions.
RUN sed -i 's/AllowOverride Limit/AllowOverride All/g' \
/etc/apache2/sites-available/000-default.conf
# Clean the application folder.
RUN rm -fr /var/www/html
# Get the Magento files
#RUN wget http://www.magentocommerce.com/downloads/assets/1.9.1.0/magento-1.9.1.0.tar.gz
#RUN wget https://github.com/ysilvela/docker-magento/raw/master/magento-1.9.1.0.tar-2015-02-10-09-39-06.gz
RUN wget https://github.com/ysilvela/docker-magento/raw/master/magento-1.9.3.0-2016-10-11-06-05-14.tar.gz
#RUN mv magento-1.9.1.0.tar-2015-02-10-09-39-06.gz /tmp
RUN mv magento-1.9.3.0-2016-10-11-06-05-14.tar.gz /tmp
#RUN cd /tmp && tar -zxvf magento-1.9.1.0.tar-2015-02-10-09-39-06.gz
RUN cd /tmp && tar -zxvf magento-1.9.3.0-2016-10-11-06-05-14.tar.gz
RUN mv /tmp/magento /app
# Add scripts and make them executable.
COPY run.sh /run.sh
RUN chmod +x /*.sh
# Add volumes for MySQL and the application.
VOLUME ["/var/lib/mysql", "/var/www/html"]
# Environmental variables.
ENV MAGENTO_PASS ""
EXPOSE 80 3306 443
CMD ["/run.sh"]