From 6f3de3a8853243d302132083edefe3f87f60dc07 Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Thu, 15 Dec 2022 16:43:09 +0000 Subject: feat: Dockerize API --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 82bf93e..fc1c16d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ SHELL := /bin/bash .PHONY: api api: ## Run API - @poetry run uvicorn poker.api:app + @poetry run uvicorn --host 0.0.0.0 poker.api:app .PHONY: black black: ## Run black formatter @@ -13,6 +13,10 @@ black: ## Run black formatter black-check: ## Run black formatter @poetry run black poker tests --check; +.PHONY: build +build: ## Build Docker container + @COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker compose -f compose.yml build; + .PHONY: clean clean: ## Remove python cache files -@find . -name '*.pyc' -exec rm -f {} +; @@ -79,4 +83,4 @@ uninstall: ## Remove virtual environment .PHONY: update update: ## Update poetry.lock using pyproject.toml - @poetry update; \ No newline at end of file + @poetry update; -- cgit v1.2.3