Skip to content

Commit

Permalink
PHP extensions per argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagodevweb committed Dec 11, 2021
1 parent eb8f2b0 commit 10d5935
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Expand Up @@ -2,7 +2,8 @@ FROM php:7.1-cli-alpine3.10

WORKDIR /var/www

ARG PHP_EXTENSIONS="bcmath"
RUN apk --update add --no-cache $PHPIZE_DEPS bash && \
docker-php-ext-install bcmath
docker-php-ext-install ${PHP_EXTENSIONS}

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -231,17 +231,17 @@ Requirements:

Usage:

Set a temporary alias
Set a alias
```bash
alias dcrr='docker-compose run --rm'
```
Install dependencies
Install PHP dependencies
```bash
dcrr depi
#or
docker-compose run --rm depi
```
Update dependencies
Update PHP dependencies
```bash
dcrr depu
#or
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Expand Up @@ -6,10 +6,10 @@ services:
dockerfile: Dockerfile
volumes:
- ./:/var/www
depi: &depi
depi:
<<: *casbin
entrypoint: composer install
depu: &depu
depu:
<<: *casbin
entrypoint: composer update
test:
Expand Down

0 comments on commit 10d5935

Please sign in to comment.