Closed EarthlingDavey closed 5 months ago
Composer install is breaking the build so this commit also includes a fix.
The current dockerfile:
COPY ./composer.json /var/www/html/composer.json
RUN composer install --no-dev --no-scripts --no-autoloader
COPY . .
RUN composer install --no-dev
debug-bar
.The issue... can be seen on this workflow https://github.com/ministryofjustice/justice-gov-uk/actions/runs/8325274173/job/22778565139 or locally with the command docker build . --target=build-nginx
The change.
COPY . .
in build-fpm-composer
and adjust build-fpm
& build-nginx
accordingly.Following yesterdays chat, package versions have been defined approptiately.
Also, it the interest of minimising the surrfce for vulnerabilities, sentry/sdk
has been removed because we use sentry/sentry
. The env
function of oscarotero/env
has been brought n house.
/inc/documents
folder.