Skip to content

Commit 75b05fe

Browse files
Add the make install command
1 parent 6c9a036 commit 75b05fe

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ down:
1111
fix:
1212
docker-compose -f $(CONFIG) run php80 ./vendor/bin/php-cs-fixer fix
1313

14+
install:
15+
docker-compose -f $(CONFIG) build
16+
docker-compose -f $(CONFIG) run php80 composer install
17+
1418
phpstan:
1519
docker-compose -f $(CONFIG) run php80 ./vendor/bin/phpstan analyse
1620

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,12 @@ This repository provides a starting point for other PHP projects.
2424
1. Commit & push.
2525
1. Continue work on the new project.
2626

27-
## Installation
28-
29-
Fetch dependencies with Composer.
30-
31-
```bash
32-
composer install
33-
```
34-
3527
## Make commands
3628

37-
Starting and shutting down:
29+
Installation, starting and shutting down:
3830

3931
```bash
32+
make install
4033
make up
4134
make down
4235
```

docker/php80/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@ FROM php:8.0-cli
22

33
RUN apt-get update
44

5+
RUN apt-get install unzip
6+
57
RUN pecl install xdebug
68
RUN docker-php-ext-enable xdebug
9+
10+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

0 commit comments

Comments
 (0)