Skip to content

Commit

Permalink
makefile troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
nzarama-kouadio committed Dec 13, 2024
1 parent 1624eb5 commit 8791cb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 8791cb7

Please sign in to comment.