mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2025-12-08 21:52:41 +01:00
Add passthrough 'wp' script that adds --allow-root and --path arguments to wp-cli
This commit is contained in:
@@ -35,7 +35,7 @@ RUN apk add --update --no-cache ${APK_WP_CLI_DEPS} ${APK_DEPS} ${APK_BUILD_DEPS}
|
||||
ADD rootfs /
|
||||
COPY ["wp-config.php", "/var/www/html"]
|
||||
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_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}" "$@"
|
||||
Reference in New Issue
Block a user