mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-10 17:22:41 +01:00
Apply patch during build time
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user