mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 21:57:14 +08:00
feat: support docker/container running
This commit is contained in:
1
docker/sample-chatgpt-on-wechat/.env
Normal file
1
docker/sample-chatgpt-on-wechat/.env
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
26
docker/sample-chatgpt-on-wechat/Makefile
Normal file
26
docker/sample-chatgpt-on-wechat/Makefile
Normal file
@@ -0,0 +1,26 @@
|
||||
IMG:=`cat Name`
|
||||
MOUNT:=-v `pwd`/config.json:/app/config.json
|
||||
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)
|
||||
1
docker/sample-chatgpt-on-wechat/Name
Normal file
1
docker/sample-chatgpt-on-wechat/Name
Normal file
@@ -0,0 +1 @@
|
||||
zhayujie/chatgpt-on-wechat:1.0.0-alpine
|
||||
Reference in New Issue
Block a user