Skip to content

Commit 562e477

Browse files
Copilotjbtronics
andcommitted
Add --no-dev flag to composer require to prevent dev packages installation
Co-authored-by: jbtronics <[email protected]>
1 parent 0444d4e commit 562e477

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.docker/frankenphp/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
3232
# Note: COMPOSER_EXTRA_PACKAGES is intentionally not quoted to allow word splitting
3333
# This enables passing multiple package names separated by spaces
3434
# shellcheck disable=SC2086
35-
composer require $COMPOSER_EXTRA_PACKAGES --no-interaction --no-progress --optimize-autoloader
35+
composer require $COMPOSER_EXTRA_PACKAGES --no-dev --no-interaction --no-progress --optimize-autoloader
3636
if [ $? -eq 0 ]; then
3737
echo "Successfully installed additional composer packages"
3838
else

.docker/partdb-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ -n "$COMPOSER_EXTRA_PACKAGES" ]; then
4545
# Note: COMPOSER_EXTRA_PACKAGES is intentionally not quoted to allow word splitting
4646
# This enables passing multiple package names separated by spaces
4747
# shellcheck disable=SC2086
48-
sudo -E -u www-data composer require $COMPOSER_EXTRA_PACKAGES --no-interaction --no-progress --optimize-autoloader
48+
sudo -E -u www-data composer require $COMPOSER_EXTRA_PACKAGES --no-dev --no-interaction --no-progress --optimize-autoloader
4949
if [ $? -eq 0 ]; then
5050
echo "Successfully installed additional composer packages"
5151
else

0 commit comments

Comments
 (0)