mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
bae7b7b74d
commit
6b4601e9d1
@ -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
|
||||
|
||||
|
||||
@ -2,6 +2,8 @@ version: '3.7'
|
||||
|
||||
services:
|
||||
webapp:
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
build:
|
||||
context: .
|
||||
target: build-and-test
|
||||
|
||||
@ -2,6 +2,8 @@ version: "3.7"
|
||||
|
||||
services:
|
||||
webapp:
|
||||
environment:
|
||||
- NODE_ENV=test
|
||||
build:
|
||||
context: .
|
||||
target: build-and-test
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user