1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

fix opencart

This commit is contained in:
kev 2017-12-14 14:25:30 +08:00
parent f068c53553
commit 0d910796d0
2 changed files with 5 additions and 3 deletions

@ -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

@ -5,7 +5,7 @@ opencart:
links:
- mysql
volumes:
- /var/www/html
- /var/www
restart: always
mysql: