Skip to content

Commit f906540

Browse files
authored
Dockerfile: Separate composer/composer image as a multi-stage build (#22)
So that Dependabot can auto-update it.
1 parent e739bda commit f906540

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
FROM composer/composer:2.8.9-bin AS composer-bin
2+
13
FROM php:8.4.7-cli-alpine
24

3-
COPY --from=composer/composer:2.8.9-bin /composer /usr/local/bin/composer
5+
COPY --from=composer-bin /composer /usr/local/bin/composer
46

57
COPY bin/decode-php-constraint /usr/local/bin/decode-php-constraint
68
COPY composer.json composer.lock /app/

0 commit comments

Comments
 (0)