1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-30 09:16:41 +02:00
dockerfiles/magento/Dockerfile
2016-05-01 09:06:20 +08:00

44 lines
1.4 KiB
Docker

#
# Dockerfile for magento
#
FROM php:5.6-apache
MAINTAINER kev<noreply@easypi.info>
RUN a2enmod rewrite
RUN set -xe \
&& apt-get update \
&& 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
ENV MAGENTO_VER 2.0.1
ENV MAGENTO_MD5 a3e35a6581cab5ce31d7bbc3a43ed70a
ENV MAGENTO_URL https://github.com/magento/magento2/archive/$MAGENTO_VER.tar.gz
ENV MAGENTO_FILE magento.tar.gz
RUN curl -sSL ${MAGENTO_URL} -o ${MAGENTO_FILE} \
&& echo "${MAGENTO_MD5} ${MAGENTO_FILE}" | md5sum -c \
&& tar xzf ${MAGENTO_FILE} --strip 1 \
&& rm ${MAGENTO_FILE} \
&& chown -R www-data:www-data .