diff --git a/.docker/php81.Dockerfile b/.docker/php81.Dockerfile new file mode 100644 index 0000000..6964018 --- /dev/null +++ b/.docker/php81.Dockerfile @@ -0,0 +1,6 @@ +FROM php:8.1-cli + +RUN apt-get update && \ + apt-get install -y unzip + +COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer diff --git a/.docker/php82.Dockerfile b/.docker/php82.Dockerfile new file mode 100644 index 0000000..dbf5dec --- /dev/null +++ b/.docker/php82.Dockerfile @@ -0,0 +1,6 @@ +FROM php:8.2-cli + +RUN apt-get update && \ + apt-get install -y unzip + +COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer diff --git a/.docker/php83.Dockerfile b/.docker/php83.Dockerfile new file mode 100644 index 0000000..351731a --- /dev/null +++ b/.docker/php83.Dockerfile @@ -0,0 +1,6 @@ +FROM php:8.3-cli + +RUN apt-get update && \ + apt-get install -y unzip + +COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer diff --git a/.gitattributes b/.gitattributes index 612479c..90c7705 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,7 +1,9 @@ -/.github export-ignore -/tests export-ignore -.gitattributes export-ignore -.gitignore export-ignore -.scrutinizer.yml export-ignore -phpstan.neon.dist export-ignore -phpunit.xml.dist export-ignore +/.docker export-ignore +/.github export-ignore +/tests export-ignore +.gitattributes export-ignore +.gitignore export-ignore +.scrutinizer.yml export-ignore +docker-compose.yml export-ignore +phpstan.neon.dist export-ignore +phpunit.xml.dist export-ignore diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8e7a58e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,24 @@ +version: '3.8' + +services: + php81: + build: + context: . + dockerfile: .docker/php81.Dockerfile + working_dir: /var/www/html + volumes: + - .:/var/www/html:delegated + php82: + build: + context: . + dockerfile: .docker/php82.Dockerfile + working_dir: /var/www/html + volumes: + - .:/var/www/html:delegated + php83: + build: + context: . + dockerfile: .docker/php83.Dockerfile + working_dir: /var/www/html + volumes: + - .:/var/www/html:delegated