From 39aae66114480fe3302bb575ba48df7f8e0dd8dc Mon Sep 17 00:00:00 2001 From: W L Bentley Date: Sat, 11 Nov 2017 10:59:30 -0800 Subject: [PATCH] Add /bin/wp to chmod +x command Without this, the wp command is not found, and throws error: oci runtime error: exec failed: container_linux.go:265: starting container process caused "exec: \"wp\": executable file not found in $PATH" --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6b5cf5d..1a44332 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN apt-get update \ # Add WP-CLI RUN curl -o /bin/wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar COPY wp-su.sh /bin/wp -RUN chmod +x /bin/wp-cli.phar +RUN chmod -x /bin/wp-cli.phar /bin/wp