Skip to content

Commit

Permalink
update 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
84hero committed Aug 28, 2019
0 parents commit 33fc935
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Dockerfile
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" ]
29 changes: 29 additions & 0 deletions README.md
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
```


0 comments on commit 33fc935

Please sign in to comment.