mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
fix opencart
This commit is contained in:
parent
f068c53553
commit
0d910796d0
@ -12,7 +12,9 @@ RUN set -xe \
|
|||||||
&& apt-get install -y libpng-dev libjpeg-dev libmcrypt-dev \
|
&& apt-get install -y libpng-dev libjpeg-dev libmcrypt-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
&& 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
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
@ -28,5 +30,5 @@ RUN set -xe \
|
|||||||
&& mv config-dist.php config.php \
|
&& mv config-dist.php config.php \
|
||||||
&& mv admin/config-dist.php admin/config.php \
|
&& mv admin/config-dist.php admin/config.php \
|
||||||
&& rm ${OPENCART_FILE} \
|
&& rm ${OPENCART_FILE} \
|
||||||
&& chown -R www-data:www-data .
|
&& chown -R www-data:www-data /var/www
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ opencart:
|
|||||||
links:
|
links:
|
||||||
- mysql
|
- mysql
|
||||||
volumes:
|
volumes:
|
||||||
- /var/www/html
|
- /var/www
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
|
Loading…
Reference in New Issue
Block a user