Skip to content

Commit

Permalink
feat(Composer) Adding php extension
Browse files Browse the repository at this point in the history
 * Added php extension gd.
  • Loading branch information
Yansell Rivas committed Sep 15, 2021
1 parent 09597c4 commit 33885d1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ 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 gd \
&& apk add --no-cache git
&& 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

COPY ./custom.ini /usr/local/etc/php/conf.d/

WORKDIR /app

RUN composer self-update 2.0.14

ENTRYPOINT ["composer"]
ENTRYPOINT ["composer"]

0 comments on commit 33885d1

Please sign in to comment.