Use docker compose where docker-compose is not available
Dockerfile uses sudo package to install envkey. The version of Alpine used as the base image here is pinned and the envkey install script has not changed in three years, so it is difficult to see how this broke. However, without installing the sudo package the sudo command in install.sh cannot run and the Dockerfile cannot be built. To ensure that the final image does not change we also remove the sudo package after running the install script.
Install poetry more defensively Avoid errors when building the Dockerfile by:
Creating directories and files that 'poetry install' expects
FIX the broken build that can be seen on #800 and https://github.com/nhsx/nhsx-website/actions/runs/10491953953/job/29062294843?pr=800
docker compose
wheredocker-compose
is not availablesudo
package to installenvkey
. The version of Alpine used as the base image here is pinned and the envkey install script has not changed in three years, so it is difficult to see how this broke. However, without installing the sudo package the sudo command in install.sh cannot run and the Dockerfile cannot be built. To ensure that the final image does not change we also remove the sudo package after running the install script.Testing
./script/test
and check it runs green../script/server
and check you can see a running site at http://localhost:5000