From 79b8194b2a0ef3ad166e6d7d14b73439f8217b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 9 Mar 2017 11:01:24 +0100 Subject: [PATCH] Docker: exec single commands This replaces bash with the docker command, freeing memory and automatically returning the exit code of the docker command as the exit code of the shell script. --- docker/1_base/build.sh | 2 +- docker/4_run/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/1_base/build.sh b/docker/1_base/build.sh index 40aa7c2..03e68e7 100755 --- a/docker/1_base/build.sh +++ b/docker/1_base/build.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -docker build -t pillar_base -f base.docker .; +exec docker build -t pillar_base -f base.docker .; diff --git a/docker/4_run/build.sh b/docker/4_run/build.sh index f69c074..0f1c8b3 100755 --- a/docker/4_run/build.sh +++ b/docker/4_run/build.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -docker build -t armadillica/blender_cloud -f run.docker . +exec docker build -t armadillica/blender_cloud:latest-py36 -f run.docker .