From 0d910796d01901a4bc58c23deec19b0246392096 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 14 Dec 2017 14:25:30 +0800 Subject: [PATCH] fix opencart --- opencart/Dockerfile | 6 ++++-- opencart/docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/opencart/Dockerfile b/opencart/Dockerfile index 3da03b8..adef0d6 100644 --- a/opencart/Dockerfile +++ b/opencart/Dockerfile @@ -12,7 +12,9 @@ RUN set -xe \ && apt-get install -y libpng-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 + && docker-php-ext-install gd mbstring mysqli zip \ + && pecl install mcrypt-1.0.1 \ + && docker-php-ext-enable mcrypt WORKDIR /var/www/html @@ -28,5 +30,5 @@ RUN set -xe \ && mv config-dist.php config.php \ && mv admin/config-dist.php admin/config.php \ && rm ${OPENCART_FILE} \ - && chown -R www-data:www-data . + && chown -R www-data:www-data /var/www diff --git a/opencart/docker-compose.yml b/opencart/docker-compose.yml index 416343b..459ed04 100644 --- a/opencart/docker-compose.yml +++ b/opencart/docker-compose.yml @@ -5,7 +5,7 @@ opencart: links: - mysql volumes: - - /var/www/html + - /var/www restart: always mysql: