diff --git a/Dockerfile b/Dockerfile index 523f5849..ab7a50b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1 -FROM ghcr.io/ghostwriter/php:8.1-composer +FROM ghcr.io/ghostwriter/php:8.2-composer LABEL "org.opencontainers.image.title"="Compliance" LABEL "org.opencontainers.image.description"="Compliance Automation for PHP - Automatically configure and execute multiple CI/CD & QA Tests via GitHub Actions." @@ -10,10 +10,16 @@ LABEL "org.opencontainers.image.licenses"="BSD-3-Clause" WORKDIR /app -COPY / /app +COPY composer.* /app/ RUN COMPOSER_CACHE_DIR=/dev/null composer install --no-dev --no-autoloader --no-interaction --verbose +COPY bin /app/bin/ +COPY src /app/src/ + RUN composer dump-autoload -a --no-dev +# VERBOSITY = DEBUG +ENV SHELL_VERBOSITY=3 + ENTRYPOINT ["/app/bin/compliance"]