summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'tasks.py')
-rw-r--r--tasks.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks.py b/tasks.py
index d518374..6cbdecc 100644
--- a/tasks.py
+++ b/tasks.py
@@ -154,10 +154,16 @@ def stop(ctx, container=TARGET_CONTAINER_NAME, hide=True):
else:
print("** Docker container <{0}> not found **".format(container))
+# Docker compose based deployment
@task
def build(ctx):
run_as_cmd = run_as(OS_NAME)
+ copy_tree(
+ os.path.join(SCRIPT_DIR, 'requirements'),
+ os.path.join(SCRIPT_DIR, 'docker', 'Files')
+ )
+
base_build_cmd = "docker-compose build --no-cache"
cmd = get_cmd(run_as_cmd, base_build_cmd)
print ("** Building docker images **")