Skip to content

Commit 0d561a3

Browse files
authored
Add WP_CLI_ALLOW_ROOT env var to Dockerfile (#42007)
* Add WP_CLI_ALLOW_ROOT env var to Dockerfile * Oops, wrong file
1 parent 0cbc542 commit 0d561a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/docker/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ ARG PNPM_VERSION
1010
ENV LANG en_US.UTF-8
1111
ENV LC_ALL en_US.UTF-8
1212

13+
# Bypass WP-CLI `--allow-root` check. Reworking the container to not run as root would be a lot of work for basically no benefit.
14+
ENV WP_CLI_ALLOW_ROOT=1
15+
1316
WORKDIR /tmp
1417

1518
# Record ARGs

0 commit comments

Comments
 (0)