Makefile 672 B

123456789101112131415161718192021222324252627282930313233
  1. # Set the name of the Docker image
  2. IMAGE_NAME=citripio-bot
  3. # Set the version of the bot
  4. VERSION=0.1.0
  5. # Build the Docker image
  6. build:
  7. docker build -t $(IMAGE_NAME):$(VERSION) .
  8. # Start the bot container
  9. start:
  10. docker run -d --env-file .env --name $(IMAGE_NAME) $(IMAGE_NAME):$(VERSION)
  11. # Start the bot container in development mode :)
  12. devmode:
  13. docker run -it --env-file .env --name $(IMAGE_NAME) $(IMAGE_NAME):$(VERSION)
  14. # Stop the bot container
  15. stop:
  16. docker stop $(IMAGE_NAME)
  17. # Remove the bot container
  18. remove:
  19. docker rm $(IMAGE_NAME)
  20. # View the logs of the bot container
  21. logs:
  22. docker logs $(IMAGE_NAME)
  23. # View the running Docker containers
  24. ps:
  25. docker ps