mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 16:32:33 +01:00
Add passthrough 'wp' script that adds --allow-root and --path arguments to wp-cli
This commit is contained in:
parent
fe488e5752
commit
309e559f81
|
@ -35,7 +35,7 @@ RUN apk add --update --no-cache ${APK_WP_CLI_DEPS} ${APK_DEPS} ${APK_BUILD_DEPS}
|
||||||
ADD rootfs /
|
ADD rootfs /
|
||||||
COPY ["wp-config.php", "/var/www/html"]
|
COPY ["wp-config.php", "/var/www/html"]
|
||||||
COPY --from=wordpress-builder /tmp/build/rootfs /
|
COPY --from=wordpress-builder /tmp/build/rootfs /
|
||||||
COPY --from=wordpress:cli-php7.4 /usr/local/bin/wp /usr/local/bin/
|
COPY --from=wordpress:cli-php7.4 /usr/local/bin/wp /usr/local/bin/wp-cli
|
||||||
|
|
||||||
ENV WP_CONTENT_ID 2bca7d694c6279bb79bbb642ba4305f9
|
ENV WP_CONTENT_ID 2bca7d694c6279bb79bbb642ba4305f9
|
||||||
ENV WP_VERSION 5.3.2
|
ENV WP_VERSION 5.3.2
|
||||||
|
|
3
rootfs/usr/local/bin/wp
Normal file
3
rootfs/usr/local/bin/wp
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
/usr/local/bin/wp-cli --allow-root --path="/var/www/${WEB_ROOT}" "$@"
|
Loading…
Reference in New Issue
Block a user