Skip to content

A free open source IT asset/license management system

Fixed #19905 - install only production dependencies in Alpine Docker image

sudarshanvashisht872342fb4c8e
diff --git a/Dockerfile.alpine b/Dockerfile.alpine
index df67d7cad1..4431fca6a4 100644
--- a/Dockerfile.alpine
+++ b/Dockerfile.alpine
@@ -78,7 +78,7 @@ RUN mkdir -p /var/www/.composer && chown apache /var/www/.composer
# Install dependencies
USER apache
-RUN COMPOSER_CACHE_DIR=/dev/null composer install --working-dir=/var/www/html
+RUN COMPOSER_CACHE_DIR=/dev/null composer install --no-dev --working-dir=/var/www/html
USER root