Docker compose to run test

This commit is contained in:
2024-11-21 17:26:42 +02:00
parent 77cb613f73
commit 5edd074b7f
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"]