Apply patch during build time

This commit is contained in:
2023-01-24 01:24:46 +01:00
parent bb3f62ef10
commit fedfaeafc4
3 changed files with 39 additions and 19 deletions

View File

@@ -32,7 +32,9 @@ RUN apk add --update --no-cache patch
COPY --from=rootfs ["/", "/"]
RUN chmod a+x /usr/local/bin/wp
RUN set -eux \
&& chmod a+x /usr/local/bin/wp \
&& wp-apply-patch "/etc/wp-mods/wp-admin-update-core.patch" "/var/www/html/wp-admin/update-core.php" "true"
ARG WP_VERSION
ENV WP_VERSION="${WP_VERSION}"