-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathmakefile
More file actions
14 lines (12 loc) · 685 Bytes
/
makefile
File metadata and controls
14 lines (12 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# build the command line interface and install node packages
build:
docker build --build-arg "USER_ID=$$(id -u)" --build-arg "GROUP_ID=$$(id -g)" -f ./docker/dockerfile --target lotr_cli -t lotr-cli:latest .
docker run -v ${PWD}/backend:/app/backend -v ${PWD}/frontend:/app/frontend --entrypoint /app/npm-build.sh -it --rm --name lotr-cli lotr-cli
# start and stop the local environment
up:
docker compose -f docker/compose.yml up -d
down:
docker compose -f docker/compose.yml down
# run the command line interface to manage application dependencies and run tests
cli:
docker run -v ${PWD}/backend:/app/backend -v ${PWD}/frontend:/app/frontend -it --rm --name lotr-cli lotr-cli