1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
dockerfiles/opencart/Dockerfile

35 lines
1.0 KiB
Docker
Raw Normal View History

2015-05-27 08:39:04 +00:00
#
# Dockerfile for opencart
#
2017-12-13 08:06:11 +00:00
FROM php:7.2-apache
2021-04-16 07:47:27 +00:00
MAINTAINER EasyPi Software Foundation
2015-05-27 08:39:04 +00:00
RUN a2enmod rewrite
2016-03-08 10:05:24 +00:00
RUN set -xe \
&& apt-get update \
2017-12-13 08:54:36 +00:00
&& apt-get install -y libpng-dev libjpeg-dev libmcrypt-dev \
2015-05-27 09:45:11 +00:00
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
2017-12-14 06:25:30 +00:00
&& docker-php-ext-install gd mbstring mysqli zip \
2021-04-16 07:47:27 +00:00
&& pecl install mcrypt-1.0.4 \
2017-12-14 06:25:30 +00:00
&& docker-php-ext-enable mcrypt
2015-05-27 08:39:04 +00:00
WORKDIR /var/www/html
2021-04-16 07:47:27 +00: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 08:39:04 +00:00
2016-03-08 10:05:24 +00:00
RUN set -xe \
&& curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
&& echo "${OPENCART_MD5} ${OPENCART_FILE}" | md5sum -c \
2015-05-27 11:08:27 +00:00
&& tar xzf ${OPENCART_FILE} --strip 2 --wildcards '*/upload/' \
2015-05-27 09:45:11 +00:00
&& mv config-dist.php config.php \
&& mv admin/config-dist.php admin/config.php \
&& rm ${OPENCART_FILE} \
2017-12-14 06:25:30 +00:00
&& chown -R www-data:www-data /var/www
2015-05-27 08:39:04 +00:00