-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from carolinad182/2.7.2-php8.2
Upgrading to Composer 2.7.2 and PHP 8.2
- Loading branch information
Showing
1 changed file
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
FROM php:7.4.16-cli-alpine | ||
FROM php:8.2-cli-alpine3.18 | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache --virtual .build-dependencies zip zlib-dev libzip-dev libpng-dev \ | ||
&& php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer \ | ||
&& apk del .build-dependencies \ | ||
&& docker-php-ext-install sockets bcmath \ | ||
&& apk add --no-cache git \ | ||
&& apk add --no-cache zip libzip-dev \ | ||
&& docker-php-ext-configure zip \ | ||
&& docker-php-ext-install zip \ | ||
&& apk add --no-cache libpng libpng-dev \ | ||
&& docker-php-ext-install gd \ | ||
&& apk del libpng-dev | ||
&& apk add linux-headers \ | ||
&& apk add --no-cache --virtual .build-dependencies zip zlib-dev libzip-dev libpng-dev \ | ||
&& php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer \ | ||
&& apk del .build-dependencies \ | ||
&& docker-php-ext-install sockets bcmath \ | ||
&& apk add --no-cache git \ | ||
&& apk add --no-cache zip libzip-dev \ | ||
&& docker-php-ext-configure zip \ | ||
&& docker-php-ext-install zip \ | ||
&& apk add --no-cache libpng libpng-dev \ | ||
&& docker-php-ext-install gd \ | ||
&& apk del libpng-dev \ | ||
&& docker-php-ext-install sockets \ | ||
&& apk add --no-cache patch | ||
|
||
COPY ./custom.ini /usr/local/etc/php/conf.d/ | ||
|
||
WORKDIR /app | ||
|
||
RUN composer self-update 2.0.14 | ||
RUN composer self-update 2.7.2 | ||
|
||
ENTRYPOINT ["composer"] |