From 8791cb799fe13da2d8a844ba7e8079bc56f25830 Mon Sep 17 00:00:00 2001 From: nzarama-kouadio Date: Fri, 13 Dec 2024 22:31:50 +0000 Subject: [PATCH] makefile troubleshooting --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8f1cce3..65f8239 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ -# Variables + # Variables IMAGE_NAME = hangman-app CONTAINER_NAME = hangman-container +PORT = 5000 # Build the Docker image build: docker build -t $(IMAGE_NAME) . -# Run the container interactively +# Run the container interactively with port mapping run: - docker run -it --name $(CONTAINER_NAME) $(IMAGE_NAME) + docker run -it -p $(PORT):$(PORT) --name $(CONTAINER_NAME) $(IMAGE_NAME) # Clean up: Remove the container and image clean: