Skip to content

Commit

Permalink
Merge pull request #1 from carolinad182/2.7.2-php8.2
Browse files Browse the repository at this point in the history
Upgrading to Composer 2.7.2 and PHP 8.2
  • Loading branch information
angelbencosme authored Aug 6, 2024
2 parents 33885d1 + 76f96a3 commit a867296
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions Dockerfile
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"]

0 comments on commit a867296

Please sign in to comment.