mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 11:25:33 +01:00
Re-add examples
This commit is contained in:
parent
579c476a54
commit
4e885eea91
12 changed files with 146 additions and 0 deletions
36
examples/php-full/Dockerfile
Normal file
36
examples/php-full/Dockerfile
Normal 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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue