1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:31 +02: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

View File

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

View File

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