-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (20 loc) · 989 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM l2go/woocommerce:base
MAINTAINER Bruno Paz "[email protected]"
ENV WOOCOMMERCE_VERSION 3.6.4
RUN apt-get update && apt-get install -y apt-transport-https
RUN apt-get install -y unzip wget mariadb-server supervisor
RUN rm -rf /usr/src/wordpress/wp-content/plugins/woocommerce \
&& rm -rf /usr/src/wordpress/wp-content/plugins/azpay-woocommerce \
&& rm -rf /usr/src/wordpress/wp-content/plugins/Woocommerce3-plugin-master
RUN wget https://downloads.wordpress.org/plugin/woocommerce.${WOOCOMMERCE_VERSION}.zip -O /tmp/temp.zip \
&& cd /usr/src/wordpress/wp-content/plugins \
&& unzip /tmp/temp.zip \
&& rm /tmp/temp.zip
RUN wget https://github.com/azpay/Woocommerce3-plugin/archive/master.zip -O /tmp/temp2.zip \
&& cd /usr/src/wordpress/wp-content/plugins \
&& unzip /tmp/temp2.zip \
&& rm /tmp/temp2.zip \
&& cd Woocommerce3-plugin-master \
&& mv azpay-woocommerce ../
RUN cp -rp /var/lib/mysql /var/lib/mysql-no-volume
CMD ["supervisord"]