mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:35 +02:00
update
This commit is contained in:
parent
2262666d4a
commit
8daeb37d16
@ -10,7 +10,7 @@ RUN a2enmod rewrite
|
||||
RUN apt-get update && apt-get install -y libpng12-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
|
||||
&& docker-php-ext-install gd mcrypt mbstring mysqli zip
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
@ -19,9 +19,11 @@ ENV OPENCART_MD5 27f22c70eac060a304fc64311c8278d5
|
||||
ENV OPENCART_URL https://github.com/opencart/opencart/archive/${OPENCART_VER}.tar.gz
|
||||
ENV OPENCART_FILE opencart.tar.gz
|
||||
|
||||
RUN curl -fSL ${OPENCART_URL} -o ${OPENCART_FILE} \
|
||||
RUN curl -sSL ${OPENCART_URL} -o ${OPENCART_FILE} \
|
||||
&& echo "${OPENCART_MD5} ${OPENCART_FILE}" | md5sum -c \
|
||||
&& tar xzf ${OPENCART_FILE} --strip 2 '*/upload/' \
|
||||
&& mv config-dist.php config.php \
|
||||
&& mv admin/config-dist.php admin/config.php \
|
||||
&& rm ${OPENCART_FILE} \
|
||||
&& chown -R www-data:www-data .
|
||||
|
||||
|
@ -1,2 +1,19 @@
|
||||
`OpenCart` is designed feature rich, easy to use, search engine
|
||||
friendly and with a visually appealing interface.
|
||||
|
||||
```
|
||||
opencart:
|
||||
image: opencart
|
||||
ports:
|
||||
- "8000:80"
|
||||
links:
|
||||
- mysql
|
||||
restart: always
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=opencart
|
||||
restart: always
|
||||
```
|
||||
|
15
opencart/docker-compose.yml
Normal file
15
opencart/docker-compose.yml
Normal file
@ -0,0 +1,15 @@
|
||||
opencart:
|
||||
image: opencart
|
||||
ports:
|
||||
- "8000:80"
|
||||
links:
|
||||
- mysql
|
||||
restart: always
|
||||
|
||||
mysql:
|
||||
image: mysql
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=root
|
||||
- MYSQL_DATABASE=opencart
|
||||
restart: always
|
||||
|
Loading…
x
Reference in New Issue
Block a user