FROM composer:2.9@sha256:b09bccd91a78fe8a9ab4b33d707b862e8fe54fec17782e32683ad2a69c46867d
# Compile PHP's bundled pcntl module. Build tools do not remain in the runtime.
RUN apk add --no-cache --virtual .horizon-build $PHPIZE_DEPS \
    && docker-php-ext-install pcntl \
    && apk del .horizon-build
WORKDIR /fixture
COPY composer.json composer.lock ./
RUN composer install --no-interaction --no-scripts --no-plugins --prefer-dist --no-progress
COPY . ./
ENV APP_PACKAGES_CACHE=/tmp/packages.php APP_SERVICES_CACHE=/tmp/services.php
USER 65534:65534
ENTRYPOINT []
CMD ["php", "probe.php"]
