Compare commits

1 Commits

Author SHA1 Message Date
5edd074b7f Docker compose to run test 2024-11-21 17:26:42 +02:00
3 changed files with 33 additions and 1 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM php:7.4-cli
RUN apt-get update && apt-get install -y \
git \
curl \
unzip \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN composer install
ENTRYPOINT ["vendor/bin/phpunit"]

View File

@@ -1 +1,9 @@
Example for presentation.
Example for presentation.
---
Running tests with docker compose
```sh
docker compose run --build readable-example
```

7
docker-compose.yml Normal file
View File

@@ -0,0 +1,7 @@
services:
readable-example:
build:
context: .
dockerfile: Dockerfile
container_name: readable-example
working_dir: /app