From caed280bffeae53cd87b655fce32e652bd4269a5 Mon Sep 17 00:00:00 2001 From: d11n Date: Tue, 4 Oct 2022 17:52:48 +0200 Subject: [PATCH] Upgrade Wordpress, WooCommerce and plugin (#7) * Upgrade Wordpress, WooCommerce and plugin * Remove GMP * Update Dockerfile --- Dockerfile | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 26f9fb0..76a6ce5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM wordpress:6.0.0 +FROM wordpress:6.0.2-php8.0 -ENV WOOCOMMERCE_VERSION 6.6.1 -ENV BTCPAY_PLUGIN_VERSION 1.0.2 +ENV WOOCOMMERCE_VERSION 6.9.4 +ENV BTCPAY_PLUGIN_VERSION 1.1.1 RUN apt-get update \ && apt-get install -y --no-install-recommends unzip wget \ @@ -16,22 +16,17 @@ RUN apt-get update \ # Install the gmp, mcrypt and soap extensions RUN apt-get update -y -RUN apt-get install -y libgmp-dev libxml2-dev -RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/local/include/ -RUN docker-php-ext-configure gmp -RUN docker-php-ext-install gmp +RUN apt-get install -y libxml2-dev RUN docker-php-ext-install soap # Download WordPress CLI -RUN curl -L "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar" > /usr/bin/wp && \ - chmod +x /usr/bin/wp +RUN curl -L "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar" > /usr/bin/wp && chmod +x /usr/bin/wp RUN { \ - echo 'file_uploads = On'; \ - echo 'post_max_size=100M'; \ - echo 'upload_max_filesize=100M'; \ - } > /usr/local/etc/php/conf.d/uploads.ini - + echo 'file_uploads = On'; \ + echo 'post_max_size=100M'; \ + echo 'upload_max_filesize=100M'; \ +} > /usr/local/etc/php/conf.d/uploads.ini COPY docker-entrypoint.sh /usr/local/bin/ VOLUME ["/var/www/html"]