diff --git a/README.md b/README.md index d0aed6bb..1536d7f8 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,6 @@ A working script is available in the bundled `examples` directory - Start Server : `php examples/server.php` Start Client(s) : `php examples/client.php` -Messaging part require to install [Docker](https://www.docker.com) and execute `docker-compose up -d` - ## Documentation [https://darkwood-fr.github.io/flow](https://darkwood-fr.github.io/flow) diff --git a/tools/dev/Dockerfile b/tools/dev/Dockerfile new file mode 100644 index 00000000..8e5360e8 --- /dev/null +++ b/tools/dev/Dockerfile @@ -0,0 +1,9 @@ +# syntax=docker/dockerfile:1.6.0 + +FROM php:8.2-cli-alpine as builder + +COPY --from=composer:2.6.2 /usr/bin/composer /usr/bin/composer + +RUN composer install --no-dev --no-interaction --no-progress + +WORKDIR /flow \ No newline at end of file diff --git a/tools/dev/docker-compose.yml b/tools/dev/docker-compose.yml index a7d4796e..d083dbaf 100644 --- a/tools/dev/docker-compose.yml +++ b/tools/dev/docker-compose.yml @@ -1,5 +1,6 @@ version: '3' services: + php: mysql: image: mysql:8.1 environment: