-
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.
- Loading branch information
Yansell Rivas Diaz
committed
Mar 31, 2021
0 parents
commit 0d52ce9
Showing
3 changed files
with
23 additions
and
0 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 |
---|---|---|
@@ -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"] |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# docker-composer | ||
dockerized PHP with composer | ||
|
||
Usage: | ||
`docker run --rm -v path/to/app:/app ntidev/composer install` | ||
|
||
Enjoy! |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
memory_limit=4G |