Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
Determine composer based on magento version
Browse files Browse the repository at this point in the history
  • Loading branch information
mischabraam committed May 27, 2024
1 parent 795e1c6 commit 8e8f06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
FROM php:${php.version}-cli-${php.variant}

# Magento 2 does not support Composer 2
COPY --from=composer:1 /usr/bin/composer /usr/bin/composer
COPY --from=composer:${composer} /usr/bin/composer /usr/bin/composer

<% if (php.variant.startsWith('alpine')) { %>
RUN apk add --no-cache unzip \
Expand Down
2 changes: 2 additions & 0 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
">= 2.4": {
"composer": "2",
"php": [
{
"version": "8.1",
Expand Down Expand Up @@ -36,6 +37,7 @@
]
},
">= 2.3": {
"composer": "1",
"php": [
{
"version": "7.3",
Expand Down

0 comments on commit 8e8f06b

Please sign in to comment.