| 123456789101112131415161718192021222324252627282930313233 |
- # Set the name of the Docker image
- IMAGE_NAME=citripio-bot
- # Set the version of the bot
- VERSION=0.1.0
- # Build the Docker image
- build:
- docker build -t $(IMAGE_NAME):$(VERSION) .
- # Start the bot container
- start:
- docker run -d --env-file .env --name $(IMAGE_NAME) $(IMAGE_NAME):$(VERSION)
- # Start the bot container in development mode :)
- devmode:
- docker run -it --env-file .env --name $(IMAGE_NAME) $(IMAGE_NAME):$(VERSION)
- # Stop the bot container
- stop:
- docker stop $(IMAGE_NAME)
- # Remove the bot container
- remove:
- docker rm $(IMAGE_NAME)
- # View the logs of the bot container
- logs:
- docker logs $(IMAGE_NAME)
- # View the running Docker containers
- ps:
- docker ps
|