-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 33fc935
Showing
2 changed files
with
40 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,11 @@ | ||
FROM composer:1.8 | ||
|
||
LABEL maintainer="84hero <[email protected]>" | ||
|
||
RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ && \ | ||
composer global require hirak/prestissimo && \ | ||
composer clearcache | ||
|
||
WORKDIR /app | ||
|
||
CMD [ "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,29 @@ | ||
# FROM composer:1.8 | ||
|
||
Composer 中国加速镜像 默认从阿里云更新 | ||
|
||
# Example | ||
|
||
- composer install | ||
|
||
``` | ||
docker run --rm -v $(pwd):/app composer composer install | ||
``` | ||
|
||
|
||
- Run by specified version | ||
|
||
``` | ||
docker run --rm -v $(pwd):/app composer:1.9 composer install | ||
OR | ||
docker run --rm -v $(pwd):/app composer:1.8 composer install | ||
``` | ||
|
||
|