Skip to content

Commit 2718910

Browse files
authored
Merge pull request #29 from jakzal/composer-image
Copy composer from the official image
2 parents 528ddf4 + 1630ae5 commit 2718910

File tree

4 files changed

+3
-21
lines changed

4 files changed

+3
-21
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV TOOLS_JSON=/root/tools.json
1111

1212
COPY tools.json ${TOOLS_JSON}
1313
COPY tools.php /usr/local/bin/tools.php
14-
COPY install-composer.sh /usr/local/bin/install-composer.sh
14+
COPY --from=composer:1.6 /usr/bin/composer /usr/bin/composer
1515

1616
RUN apt-get update && apt-get install -y --no-install-recommends $TOOL_DEPS $BUILD_DEPS $LIB_DEPS && rm -rf /var/lib/apt/lists/* \
1717
&& git clone https://github.com/nikic/php-ast.git && cd php-ast && phpize && ./configure && make && make install && cd .. && rm -rf php-ast && docker-php-ext-enable ast \

Dockerfile-alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ENV TOOLS_JSON=/root/tools.json
1111

1212
COPY tools.json ${TOOLS_JSON}
1313
COPY tools.php /usr/local/bin/tools.php
14-
COPY install-composer.sh /usr/local/bin/install-composer.sh
14+
COPY --from=composer:1.6 /usr/bin/composer /usr/bin/composer
1515

1616
RUN apk add --no-cache --virtual .tool-deps $TOOL_DEPS $LIB_DEPS \
1717
&& apk add --no-cache --virtual .build-deps $BUILD_DEPS \

install-composer.sh

Lines changed: 0 additions & 18 deletions
This file was deleted.

tools.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ function LoadTools(string $source): PleaseTry
478478
'composer',
479479
'Dependency Manager for PHP',
480480
'https://getcomposer.org/',
481-
new ShCommand('/usr/local/bin/install-composer.sh'),
481+
new ShCommand('composer self-update'),
482482
new TestCommand('composer list', 'composer')
483483
),
484484
new Tool(

0 commit comments

Comments
 (0)