mirror of
https://github.com/Medicean/VulApps.git
synced 2025-12-17 15:17:55 +00:00
21 lines
697 B
Bash
21 lines
697 B
Bash
FROM medicean/vulapps:base_wordpress
|
|
MAINTAINER Medici.Yan@Gmail.com
|
|
|
|
ENV STATIC_DOMAIN http://vulapps.xuanbo.cc
|
|
ENV PLUGIN_NAME product-catalog-8
|
|
ENV PLUGIN_VERSION 1.2
|
|
|
|
RUN apt-get install -y unzip wget
|
|
|
|
RUN set -x \
|
|
&& wget -qO /tmp/$PLUGIN_NAME-$PLUGIN_VERSION.zip $STATIC_DOMAIN/w/wordpress/plugins/$PLUGIN_NAME-$PLUGIN_VERSION.zip \
|
|
&& unzip -x /tmp/$PLUGIN_NAME-$PLUGIN_VERSION.zip -d /var/www/html/wp-content/plugins/ \
|
|
&& chown -R www-data:www-data /var/www/html/ \
|
|
&& /etc/init.d/mysql start \
|
|
&& wp --path=/var/www/html/ plugin activate $PLUGIN_NAME --allow-root \
|
|
&& chown -R www-data:www-data /var/www/html/ \
|
|
&& rm -rf /tmp/*
|
|
|
|
EXPOSE 80
|
|
CMD ["/start.sh"]
|