ministryofjustice / justice-gov-uk

Justice UK website
https://www.justice.gov.uk/
MIT License
2 stars 0 forks source link

Optimise - remove unused core functions. Document filtering & columns. #93

Closed EarthlingDavey closed 5 months ago

EarthlingDavey commented 6 months ago
EarthlingDavey commented 6 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

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.

EarthlingDavey commented 6 months ago

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.