FROM wordpress:latest

RUN apt-get update && apt-get install -y apt-transport-https
RUN apt-get install -y unzip wget

ENV WOOCOMMERCE_VERSION 6.3.1

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

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 cp -rp /var/lib/mysql /var/lib/mysql-no-volume

# CMD ["supervisord"]