Files
Checkmate/Docker/build_images.sh
T

24 lines
478 B
Bash
Raw Normal View History

#!/bin/bash
# Change directory to root Server directory for correct Docker Context
cd ..
2024-06-24 16:04:06 -07:00
#Client
client="./Docker/client.Dockerfile"
# MongoDB
2024-06-24 16:04:06 -07:00
mongoDB="./Docker/mongoDB.Dockerfile"
# Redis
2024-06-24 16:04:06 -07:00
redis="./Docker/redis.Dockerfile"
# Server
2024-06-24 16:04:06 -07:00
server="./Docker/server.Dockerfile"
2024-06-24 16:04:06 -07:00
docker build -f $client -t uptime_client .
docker build -f $mongoDB -t uptime_database_mongo .
docker build -f $redis -t uptime_redis .
docker build -f $server -t uptime_server .
echo "All images built"