-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 878 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Define the image name
IMAGE_NAME=dataloading-demo
# Define default make action
all: build
# Define how to build the Docker image
build:
docker build -t $(IMAGE_NAME):latest .
# Define how to run the Docker container
run:
docker run -p 3000:3000 -p 8888:8888 $(IMAGE_NAME)
# Define how to stop the Docker container specifically running the wayang-demo image
stop:
docker stop $(shell docker ps -q --filter ancestor=$(IMAGE_NAME))
# Define how to remove the Docker image
clean:
docker rmi $(IMAGE_NAME)
# Help command to display available commands
help:
@echo "Available commands:"
@echo " build - Build the Docker image $(IMAGE_NAME)"
@echo " run - Run the Docker container"
@echo " stop - Stop the specific Docker container running the image $(IMAGE_NAME)"
@echo " clean - Remove the Docker image $(IMAGE_NAME)"
@echo " help - Display this help"