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.

12 lines
394 B

2 months ago
2 months ago
2 months ago
  1. #!/bin/bash
  2. # Check if the '--dev' argument is provided
  3. if [ "$1" == "--dev" ]; then
  4. echo "Run development docker"
  5. DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml up -d --build
  6. else
  7. echo "Run Production docker"
  8. git pull origin main
  9. DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml up -d --build --force-recreate
  10. fi