You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
преди 1 година
1234567891011121314151617181920212223242526
  1. IMG:=`cat Name`
  2. MOUNT:=
  3. PORT_MAP:=
  4. DOTENV:=.env
  5. CONTAINER_NAME:=sample-chatgpt-on-wechat
  6. echo:
  7. echo $(IMG)
  8. run_d:
  9. docker rm $(CONTAINER_NAME) || echo
  10. docker run -dt --name $(CONTAINER_NAME) $(PORT_MAP) \
  11. --env-file=$(DOTENV) \
  12. $(MOUNT) $(IMG)
  13. run_i:
  14. docker rm $(CONTAINER_NAME) || echo
  15. docker run -it --name $(CONTAINER_NAME) $(PORT_MAP) \
  16. --env-file=$(DOTENV) \
  17. $(MOUNT) $(IMG)
  18. stop:
  19. docker stop $(CONTAINER_NAME)
  20. rm: stop
  21. docker rm $(CONTAINER_NAME)