Install node deps during build

The project dir is mounted in, so they're not available from the
container
This commit is contained in:
Jake Howard 2022-08-03 21:54:03 +01:00
parent ee9ed8e063
commit a818106f75
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 2 additions and 1 deletions

View File

@ -6,9 +6,10 @@ DEV_COMPOSE := justfile_directory() + "/docker/dev/docker-compose.yml"
@default:
just --list
@build:
build:
docker-compose -f {{ DEV_COMPOSE }} pull
docker-compose -f {{ DEV_COMPOSE }} build
docker-compose -f {{ DEV_COMPOSE }} run --rm --no-deps web npm ci
@compose +ARGS:
docker-compose -f {{ DEV_COMPOSE }} {{ ARGS }}