1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-04 10:34:49 +02:00
dockerfiles/opencart/Dockerfile

35 lines
1.0 KiB
Docker
Raw Normal View History

2015-05-27 10:39:04 +02:00
#
# Dockerfile for opencart
#
2017-12-13 10:06:11 +02:00
FROM php:7.2-apache
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2015-05-27 10:39:04 +02:00
RUN a2enmod rewrite
2016-03-08 12:05:24 +02:00
RUN set -xe \
&& apt-get update \
2017-12-13 10:54:36 +02:00
&& apt-get install -y libpng-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 \
2017-12-14 08:25:30 +02:00
&& docker-php-ext-install gd mbstring mysqli zip \
&& pecl install mcrypt-1.0.1 \
&& docker-php-ext-enable mcrypt
2015-05-27 10:39:04 +02:00
WORKDIR /var/www/html
2017-12-13 10:06:11 +02:00
ENV OPENCART_VER 3.0.2.0
ENV OPENCART_MD5 41c7e7ec49d389fc4c2204efb40289e6
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
2016-03-08 12:05:24 +02:00
RUN set -xe \
&& 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} \
2017-12-14 08:25:30 +02:00
&& chown -R www-data:www-data /var/www
2015-05-27 10:39:04 +02:00