-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 719 Bytes
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 719 Bytes
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
FROM php:5.6-apache
LABEL maintainer="bhavin7392@gmail.com"
RUN curl -O -L https://github.com/OpenMage/magento-mirror/archive/1.9.3.2.tar.gz \
&& tar xf 1.9.3.2.tar.gz
RUN mv ./magento-mirror-1.9.3.2/* /var/www/html/
RUN chmod -R o+w /var/www/html
#install mcrypt, gd, soap
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libxml2-dev \
php-soap \
php5-mysql \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install iconv mcrypt gd soap pdo_mysql
#run startup sh to create database 'magento'
#Specify Volume
VOLUME /var/www/html