1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/magento/Dockerfile

44 lines
1.4 KiB
Docker
Raw Normal View History

2015-07-26 13:42:40 +02:00
#
# Dockerfile for magento
#
FROM php:5.6-apache
2016-05-01 03:06:20 +02:00
MAINTAINER kev<noreply@easypi.info>
2015-07-26 13:42:40 +02:00
RUN a2enmod rewrite
2016-01-26 18:41:24 +02:00
RUN set -xe \
&& apt-get update \
2015-07-26 13:42:40 +02:00
&& apt-get install -y libcurl3-dev \
libfreetype6 \
libfreetype6-dev \
libjpeg62-turbo \
libjpeg62-turbo-dev \
libmcrypt-dev \
libmcrypt4 \
libpng12-dev \
libpng12-dev \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
&& docker-php-ext-install gd mcrypt mbstring pdo_mysql \
&& apt-get purge -y --auto-remove libcurl3-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libpng12-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
2016-01-26 18:41:24 +02:00
ENV MAGENTO_VER 2.0.1
ENV MAGENTO_MD5 a3e35a6581cab5ce31d7bbc3a43ed70a
ENV MAGENTO_URL https://github.com/magento/magento2/archive/$MAGENTO_VER.tar.gz
2015-07-26 13:42:40 +02:00
ENV MAGENTO_FILE magento.tar.gz
RUN curl -sSL ${MAGENTO_URL} -o ${MAGENTO_FILE} \
2016-01-26 18:41:24 +02:00
&& echo "${MAGENTO_MD5} ${MAGENTO_FILE}" | md5sum -c \
2015-07-26 13:42:40 +02:00
&& tar xzf ${MAGENTO_FILE} --strip 1 \
&& rm ${MAGENTO_FILE} \
&& chown -R www-data:www-data .