diff --git a/docker/wordpress/Dockerfile b/docker/wordpress/Dockerfile index bf90937..fa3fcaa 100644 --- a/docker/wordpress/Dockerfile +++ b/docker/wordpress/Dockerfile @@ -2,7 +2,9 @@ FROM alpine:latest AS wp2static-builder RUN apk add composer php82-simplexml php82-dom php82-tokenizer php82-xml php82-xmlwriter zip git WORKDIR /build +COPY wp2static.patch . RUN git clone https://github.com/elementor/wp2static +RUN git apply ../wp2static.patch RUN (cd wp2static && composer install) RUN (cd wp2static && composer build wp2static) diff --git a/docker/wordpress/wp2static.patch b/docker/wordpress/wp2static.patch new file mode 100644 index 0000000..65719a8 --- /dev/null +++ b/docker/wordpress/wp2static.patch @@ -0,0 +1,13 @@ +diff --git a/src/Crawler.php b/src/Crawler.php +index 81e526ed..b3cc1baa 100755 +--- a/src/Crawler.php ++++ b/src/Crawler.php +@@ -232,7 +232,7 @@ class Crawler { + WsLog::l( $notice ); + } + }, +- 'rejected' => function ( RequestException $reason, $index ) use ( $urls ) { ++ 'rejected' => function ( $reason, $index ) use ( $urls ) { + $root_relative_path = $urls[ $index ]['path']; + WsLog::l( 'Failed ' . $root_relative_path ); + },