mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
6b6bc541dd
Signed-off-by: d9pouces <github@19pouces.net>
17 lines
829 B
Docker
17 lines
829 B
Docker
FROM php:8.3-cli AS target
|
|
FROM interdiode/id-configurator:latest AS configuration
|
|
COPY --from=target / /src/
|
|
COPY --from=generated-config Php.yaml /config.yaml
|
|
RUN id-configurator apply --config /config.yaml --src /src --dst /dst
|
|
FROM target AS runtime
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ca-certificates unzip curl \
|
|
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY --from=configuration /dst/ /
|
|
RUN mkdir -p /tmp/phptest && cd /tmp/phptest \
|
|
&& composer init -n --name test/phptest \
|
|
&& composer require interdiode/idconfiguratortestpkg \
|
|
&& grep -qx 'test-only package served by the id-configurator integration tests' \
|
|
vendor/interdiode/idconfiguratortestpkg/marker.txt
|