Re-add examples

This commit is contained in:
Oliver Davies 2023-01-19 20:04:33 +00:00
parent 579c476a54
commit 4e885eea91
12 changed files with 146 additions and 0 deletions

View file

@ -0,0 +1,36 @@
FROM php:8.1-cli-bullseye AS base
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN which composer && composer -V
WORKDIR /app
ENV PATH="${PATH}:/app/vendor/bin"
COPY composer.* ./
################################################################################
FROM base AS build
RUN apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
git unzip
RUN composer install
################################################################################
FROM base AS test
COPY . .
RUN phpunit --testdox