Install node deps during build
The project dir is mounted in, so they're not available from the container
This commit is contained in:
parent
ee9ed8e063
commit
a818106f75
1 changed files with 2 additions and 1 deletions
3
justfile
3
justfile
|
@ -6,9 +6,10 @@ DEV_COMPOSE := justfile_directory() + "/docker/dev/docker-compose.yml"
|
||||||
@default:
|
@default:
|
||||||
just --list
|
just --list
|
||||||
|
|
||||||
@build:
|
build:
|
||||||
docker-compose -f {{ DEV_COMPOSE }} pull
|
docker-compose -f {{ DEV_COMPOSE }} pull
|
||||||
docker-compose -f {{ DEV_COMPOSE }} build
|
docker-compose -f {{ DEV_COMPOSE }} build
|
||||||
|
docker-compose -f {{ DEV_COMPOSE }} run --rm --no-deps web npm ci
|
||||||
|
|
||||||
@compose +ARGS:
|
@compose +ARGS:
|
||||||
docker-compose -f {{ DEV_COMPOSE }} {{ ARGS }}
|
docker-compose -f {{ DEV_COMPOSE }} {{ ARGS }}
|
||||||
|
|
Loading…
Reference in a new issue