mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-28 09:08:50 +02:00
33 lines
964 B
Docker
33 lines
964 B
Docker
#
|
|
# Dockerfile for opencart
|
|
#
|
|
|
|
FROM php:5.6-apache
|
|
MAINTAINER kev <noreply@easypi.info>
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
RUN set -xe \
|
|
&& apt-get update \
|
|
&& apt-get install -y libpng12-dev libjpeg-dev libmcrypt-dev \
|
|
&& 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
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
ENV OPENCART_VER 2.2.0.0
|
|
ENV OPENCART_MD5 a9219f14b3483f867ea48218a0bf215d
|
|
ENV OPENCART_URL https://github.com/opencart/opencart/archive/${OPENCART_VER}.tar.gz
|
|
ENV OPENCART_FILE opencart.tar.gz
|
|
|
|
RUN set -xe \
|
|
&& curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
|
|
&& echo "${OPENCART_MD5} ${OPENCART_FILE}" | md5sum -c \
|
|
&& tar xzf ${OPENCART_FILE} --strip 2 --wildcards '*/upload/' \
|
|
&& mv config-dist.php config.php \
|
|
&& mv admin/config-dist.php admin/config.php \
|
|
&& rm ${OPENCART_FILE} \
|
|
&& chown -R www-data:www-data .
|
|
|