Try to help @mattwr18

I give up now after numerous attempts to reduce the docker image size.
The only thing left is that I've put the NODE_ENV=.. configuration in
the docker-compose.X.yml files, I think that's slightly cleaner
This commit is contained in:
Robert Schäfer 2019-01-10 02:15:00 +01:00
parent bae7b7b74d
commit 6b4601e9d1
3 changed files with 7 additions and 3 deletions

View File

@ -27,9 +27,9 @@ install:
- yarn add cypress-cucumber-preprocessor
script:
- docker-compose exec -e NODE_ENV=test webapp yarn run lint
- docker-compose exec -e NODE_ENV=test webapp yarn run test
- docker-compose -f ../Nitro-Backend/docker-compose.yml exec backend yarn run db:seed > /dev/null
- docker-compose exec webapp yarn run lint
- docker-compose exec webapp yarn run test
- docker-compose -f ../Nitro-Backend/docker-compose.yml exec backend yarn run db:seed
- wait-on http://localhost:3000
- cypress run --record --key $CYPRESS_TOKEN

View File

@ -2,6 +2,8 @@ version: '3.7'
services:
webapp:
environment:
- NODE_ENV=development
build:
context: .
target: build-and-test

View File

@ -2,6 +2,8 @@ version: "3.7"
services:
webapp:
environment:
- NODE_ENV=test
build:
context: .
target: build-and-test