1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +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
2021-04-16 09:47:27 +02:00
MAINTAINER EasyPi Software Foundation
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 \
2021-04-16 09:47:27 +02:00
&& pecl install mcrypt-1.0.4 \
2017-12-14 08:25:30 +02:00
&& docker-php-ext-enable mcrypt
2015-05-27 10:39:04 +02:00
WORKDIR /var/www/html
2021-04-16 09:47:27 +02:00
ENV OPENCART_VERSION=3.0.3.7
ENV OPENCART_MD5=52288349b779a4517d4b7987253caceb
ENV OPENCART_URL=https://github.com/opencart/opencart/archive/${OPENCART_VERSION}.tar.gz
ENV OPENCART_FILE=opencart.tar.gz
2015-05-27 10:39:04 +02:00
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