Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e1c9ca1

Browse files
committedMar 18, 2025·
refactor: Switch to composer update if no lockfile is present
with lowest stable dependency requirements
1 parent 42bd7f6 commit e1c9ca1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
 

‎alpine/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ RUN \
2424
git clone -b ${SHOPWARE_VERSION} --depth 1 "${TEMPLATE_REPOSITORY}" "${SHOPWARE_BUILD_DIR}" && \
2525
cd "${SHOPWARE_BUILD_DIR}" && \
2626
mkdir -p custom && \
27-
composer install --no-interaction -o && \
27+
if [ -f composer.lock ]; then \
28+
composer install --no-interaction -o \
29+
else \
30+
composer update --prefer-lowest --prefer-stable --no-interaction -o \
31+
fi && \
2832
APP_URL="http://localhost" php bin/console system:setup --database-url=mysql://root:root@localhost:3306/shopware --generate-jwt-keys -nq && \
2933
php bin/console system:install -fnq --create-database && \
3034
composer clearcache && \

‎debian/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ RUN \
3434
git clone -b ${SHOPWARE_VERSION} --depth 1 "${TEMPLATE_REPOSITORY}" "${SHOPWARE_BUILD_DIR}" && \
3535
cd "${SHOPWARE_BUILD_DIR}" && \
3636
mkdir -p custom && \
37-
composer install --no-interaction -o && \
37+
if [ -f composer.lock ]; then \
38+
composer install --no-interaction -o \
39+
else \
40+
composer update --prefer-lowest --prefer-stable --no-interaction -o \
41+
fi && \
3842
APP_URL="http://localhost" php bin/console system:setup --database-url=mysql://root:root@localhost:3306/shopware --generate-jwt-keys -nq && \
3943
php bin/console system:install -fnq --create-database && \
4044
composer clearcache && \

0 commit comments

Comments
 (0)
Please sign in to comment.