diff options
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 **") |