Refactor dockerfiles for clarity
This commit is contained in:
1 parent
3a31387d00
commit
2499925423
20 files changed
+126
-40
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
# Change directory to root Server directory for correct Docker Context
|
||||
cd ../..
|
||||
|
||||
#Client
|
||||
client="./Docker/dev/client.Dockerfile"
|
||||
|
||||
# MongoDB
|
||||
mongoDB="./Docker/dev/mongoDB.Dockerfile"
|
||||
|
||||
# Redis
|
||||
redis="./Docker/dev/redis.Dockerfile"
|
||||
|
||||
# Server
|
||||
server="./Docker/dev/server.Dockerfile"
|
||||
|
||||
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"
|
||||
Reference in new issue
Block a user