Skip to content

Commit 0926c79

Browse files
committed
chore(front): use docker-compose run instead of exec for build/test
That way, no need for the stack to be up. It will create a container and remove it after.
1 parent 44d90d9 commit 0926c79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"scripts": {
1111
"docker-start": "docker-compose up -d",
12-
"docker-build": "docker-compose exec front npm run build",
13-
"docker-test": "docker-compose exec front npm test",
12+
"docker-build": "docker-compose run --rm front npm run build",
13+
"docker-test": "docker-compose run --rm front npm test",
1414
"start": "react-scripts start",
1515
"build": "react-scripts build",
1616
"test": "react-scripts test --env=jsdom",

0 commit comments

Comments
 (0)