2015-05-27 10:39:04 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for opencart
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM php:5.6-apache
|
|
|
|
MAINTAINER kev<noreply@datageek.info>
|
|
|
|
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
|
2015-05-27 11:04:05 +02:00
|
|
|
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libmcrypt-dev \
|
2015-05-27 11:45:11 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
|
|
|
&& docker-php-ext-install gd mcrypt mbstring mysqli zip
|
2015-05-27 10:39:04 +02:00
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
2015-05-31 05:17:37 +02:00
|
|
|
ENV OPENCART_VER 2.0.3.1
|
2015-05-31 05:37:22 +02:00
|
|
|
ENV OPENCART_MD5 222c20ee61a4ff280f55fb0ea688c746
|
2015-05-27 10:39:04 +02:00
|
|
|
ENV OPENCART_URL https://github.com/opencart/opencart/archive/${OPENCART_VER}.tar.gz
|
|
|
|
ENV OPENCART_FILE opencart.tar.gz
|
|
|
|
|
2015-05-27 11:45:11 +02:00
|
|
|
RUN curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
|
|
|
|
&& echo "${OPENCART_MD5} ${OPENCART_FILE}" | md5sum -c \
|
2015-05-27 13:08:27 +02:00
|
|
|
&& tar xzf ${OPENCART_FILE} --strip 2 --wildcards '*/upload/' \
|
2015-05-27 11:45:11 +02:00
|
|
|
&& mv config-dist.php config.php \
|
|
|
|
&& mv admin/config-dist.php admin/config.php \
|
|
|
|
&& rm ${OPENCART_FILE} \
|
|
|
|
&& chown -R www-data:www-data .
|
2015-05-27 10:39:04 +02:00
|
|
|
|