File size: 484 Bytes
dbf8df0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
IMG:=`cat Name`
MOUNT:=
PORT_MAP:=
DOTENV:=.env
CONTAINER_NAME:=sample-chatgpt-on-wechat

echo:
	echo $(IMG)

run_d:
	docker rm $(CONTAINER_NAME) || echo
	docker run -dt  --name $(CONTAINER_NAME) $(PORT_MAP) \
			--env-file=$(DOTENV) \
			$(MOUNT) $(IMG) 

run_i:
	docker rm $(CONTAINER_NAME) || echo
	docker run -it  --name $(CONTAINER_NAME) $(PORT_MAP) \
			--env-file=$(DOTENV) \
			$(MOUNT) $(IMG) 

stop:
	docker stop $(CONTAINER_NAME)

rm:     stop
	docker rm $(CONTAINER_NAME)