diff --git a/php/Dockerfile b/php/Dockerfile index a5bef8e3cf8..9b79e06c1bb 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -14,9 +14,11 @@ WORKDIR /php # Perform build steps RUN find . -name "composer.json" -not -path "*vendor*" -exec bash -c "dirname {} | xargs -I % composer install --working-dir=%" \; -# Set non-root user -RUN useradd -m automation && \ +# Set non-root user w/ ownership of /php +RUN addgroup -S automation && \ + adduser -S -G automation automation && \ chown -R automation:automation /php/ + USER automation:automation CMD ["./php/testing", "--integ"] \ No newline at end of file