Created
November 15, 2021 17:56
-
-
Save cassioeskelsen/6323e8ee163cfe127ba073fd4542a70c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!make | |
export PYTHON=python | |
default: run_api | |
run_api: | |
$(PYTHON) -m src.xpto.api.main | |
build_api_c: | |
DOCKER_BUILDKIT=1 docker image build --tag python_sample_project_api:latest --build-arg SOURCE_FOLDER=api --no-cache -f Dockerfile . | |
run_api_c: | |
docker run --name api_container -e SOURCE_FOLDER=api -e HTTP_PORT=8000 -e ORDERS_API=http://localhost:8001 -e INVOICES_API=http://localhost:8002 -p 8000:8000 python_sample_project_api:latest | |
stop_api_c: | |
docker rm --force api_container |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment