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

73 lines
2.9 KiB
Docker
Raw Normal View History

2015-07-26 13:42:40 +02:00
#
# Dockerfile for magento
#
FROM php:5.6-apache
2016-07-04 08:03:16 +02:00
MAINTAINER kev <noreply@easypi.info>
2015-07-26 13:42:40 +02:00
RUN a2enmod rewrite
2016-07-04 08:03:16 +02:00
2016-01-26 18:41:24 +02:00
RUN set -xe \
&& apt-get update \
2016-07-04 08:03:16 +02:00
&& apt-get install -y build-essential \
libcurl3 \
libcurl3-dev \
libfreetype6 \
libfreetype6-dev \
libicu52 \
libicu-dev \
libjpeg62-turbo \
2015-07-26 13:42:40 +02:00
libjpeg62-turbo-dev \
2016-07-04 08:03:16 +02:00
libmcrypt4 \
libmcrypt-dev \
libpng12-0 \
libpng12-dev \
libxslt1.1 \
libxslt1-dev \
zlib1g \
zlib1g-dev \
zziplib-bin \
2015-07-26 13:42:40 +02:00
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
2016-07-04 08:03:16 +02:00
&& docker-php-ext-install gd \
intl \
mbstring \
mcrypt \
pdo_mysql \
xsl \
zip \
&& curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& apt-get purge -y --auto-remove build-essential \
libcurl3-dev \
libfreetype6-dev \
libicu-dev \
2015-07-26 13:42:40 +02:00
libjpeg62-turbo-dev \
2016-07-04 08:03:16 +02:00
libmcrypt-dev \
libpng12-dev \
libxslt1-dev \
zlib1g-dev \
2015-07-26 13:42:40 +02:00
&& rm -rf /var/lib/apt/lists/*
2016-07-04 08:03:16 +02:00
RUN { \
echo 'always_populate_raw_post_data = -1';\
echo 'max_execution_time = 240'; \
echo 'max_input_vars = 1500'; \
echo 'upload_max_filesize = 32M'; \
echo 'post_max_size = 32M'; \
} > /usr/local/etc/php/conf.d/typo3.ini
2015-07-26 13:42:40 +02:00
WORKDIR /var/www/html
2016-07-04 08:03:16 +02:00
ENV MAGENTO_VER 2.1.0
ENV MAGENTO_MD5 aab11e6b443be7179410b195b2099819
2016-01-26 18:41:24 +02:00
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
2016-07-04 08:03:16 +02:00
RUN set -xe \
&& curl -sSL ${MAGENTO_URL} -o ${MAGENTO_FILE} \
2016-01-26 18:41:24 +02:00
&& echo "${MAGENTO_MD5} ${MAGENTO_FILE}" | md5sum -c \
2016-07-04 08:03:16 +02:00
&& tar xzf ${MAGENTO_FILE} --strip 1 \
&& rm ${MAGENTO_FILE} \
&& chown -R www-data:www-data . \
&& composer install