added COMPOSER_ALLOW_SUPERUSER env var to dockerfile (#207)
authorczephyr <redacted>
Wed, 5 Apr 2023 19:12:32 +0000 (21:12 +0200)
committerGitHub <redacted>
Wed, 5 Apr 2023 19:12:32 +0000 (21:12 +0200)
README.md

index af2425cb3d3c75ea5b9279d510694a38e6143c0d..0b606d46aa5ebfbfa55f5561ee76013151a9ee6f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -151,6 +151,9 @@ For instance, you could extend this image to add composer and install requiremen
 ```Dockerfile
 FROM roundcube/roundcubemail:latest
 
+# COMPOSER_ALLOW_SUPERUSER is needed to run plugins when using a container
+ENV COMPOSER_ALLOW_SUPERUSER=1
+
 RUN set -ex; \
     apt-get update; \
     apt-get install -y --no-install-recommends \
@@ -158,13 +161,13 @@ RUN set -ex; \
     ; \
     \
     composer \
-        --working-dir=/usr/src/roundcubemail/ \
-        --prefer-dist \
-        --prefer-stable \
-        --update-no-dev \
-        --no-interaction \
-        --optimize-autoloader \
-        require \
-            johndoh/contextmenu \
+      --working-dir=/usr/src/roundcubemail/ \
+      --prefer-dist \
+      --prefer-stable \
+      --update-no-dev \
+      --no-interaction \
+      --optimize-autoloader \
+      require \
+          johndoh/contextmenu \
     ; \
 ```
git clone https://git.99rst.org/PROJECT