File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525test-unit :
2626 @echo " Running unit tests..."
27- docker run --rm --tty -v $(PWD ) :/app python-fastapi-example-oms:dev python -m pytest tests/unit/ -v
27+ docker build -t python-fastapi-example-oms-app:latest .
28+ docker run --rm --tty python-fastapi-example-oms-app:latest python -m pytest tests/unit/ -v
2829
2930test-integration :
3031 $(MAKE ) clean
Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ services:
1818 retries : 5
1919
2020 postgres-migrations :
21- image : python-fastapi-example-oms:dev
21+ build :
22+ context : .
23+ dockerfile : Dockerfile
2224 environment :
2325 DATABASE_URL : postgresql://postgres:postgres@postgres:5432/app
2426 DEBUG : " true"
@@ -30,7 +32,9 @@ services:
3032 - app_network
3133
3234 app :
33- image : python-fastapi-example-oms:dev
35+ build :
36+ context : .
37+ dockerfile : Dockerfile
3438 ports :
3539 - " 8000:8000"
3640 environment :
You can’t perform that action at this time.
0 commit comments