Skip to content

Commit

Permalink
PHP 7.3.20 with composer 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yansell Rivas Diaz committed Mar 31, 2021
0 parents commit 0d52ce9
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM php:7.3.20-cli-alpine

RUN apk update \
&& apk add --no-cache --virtual .build-dependencies zip zlib-dev libzip-dev \
&& php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin --filename=composer \
&& apk del .build-dependencies \
&& apk add --no-cache git

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

WORKDIR /app

RUN composer self-update 1.9.1

ENTRYPOINT ["composer"]
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# docker-composer
dockerized PHP with composer

Usage:
`docker run --rm -v path/to/app:/app ntidev/composer install`

Enjoy!
1 change: 1 addition & 0 deletions custom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
memory_limit=4G

0 comments on commit 0d52ce9

Please sign in to comment.