forked from johackim/docker-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 1.26 KB
/
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
27
28
29
30
31
32
33
FROM l2go/woocommerce:latest
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 ../ \
&& chmod -R 775 /usr/src/wordpress/wp-content/plugins/azpay-woocommerce \
&& chown -R www-data:www-data /usr/src/wordpress/wp-content/plugins
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf
COPY entrypoint.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/entrypoint.sh
RUN cp -rp /var/lib/mysql /var/lib/mysql-no-volume
CMD ["supervisord"]