-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (27 loc) · 1.31 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
FROM alexcheng/apache2-php5:5.6.33
RUN a2enmod rewrite
ENV INSTALL_DIR /var/www/html
ARG MAGENTO_MAYOR_VERSION
ARG MAGENTO_VERSION
ARG MAGENTO_SAMPLEDATA_TGZ
ARG MAGENTO_SAMPLEDATA_INSTALLER
RUN cd /tmp && \
curl https://codeload.github.com/OpenMage/magento-mirror/tar.gz/$MAGENTO_VERSION -o $MAGENTO_VERSION.tar.gz && \
tar xvf $MAGENTO_VERSION.tar.gz && \
mv magento-mirror-$MAGENTO_VERSION/* magento-mirror-$MAGENTO_VERSION/.htaccess $INSTALL_DIR
RUN chown -R www-data:www-data $INSTALL_DIR
RUN apt-get update && \
apt-get install -y mysql-client-5.7 libxml2-dev libmcrypt4 libmcrypt-dev libpng-dev libjpeg-dev libfreetype6 libfreetype6-dev
RUN docker-php-ext-install soap
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install mcrypt
RUN docker-php-ext-configure gd --with-jpeg-dir=/usr/lib/ --with-freetype-dir=/usr/lib/ && \
docker-php-ext-install gd
COPY ./bin/install-magento /usr/local/bin/install-magento
RUN chmod +x /usr/local/bin/install-magento
COPY ./resources/sampledata/$MAGENTO_SAMPLEDATA_TGZ /opt/
COPY ./bin/$MAGENTO_SAMPLEDATA_INSTALLER /usr/local/bin/install-sampledata
RUN chmod +x /usr/local/bin/install-sampledata
RUN bash -c 'bash < <(curl -s -L https://raw.github.com/colinmollenhour/modman/master/modman-installer)'
RUN mv ~/bin/modman /usr/local/bin
WORKDIR $INSTALL_DIR