diff options
| author | mo khan <mo.khan@gmail.com> | 2020-02-20 15:49:05 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-02-20 15:49:05 -0700 |
| commit | 87bc4c78940f28e3dd5a71ca549ae595c41e8351 (patch) | |
| tree | 7dcb9153ab4c07d9d3a83efbfdbc69c6c423a1b4 /bin | |
| parent | dec9ce86354cfc051f3b7b08dcf9474ef5e948a0 (diff) | |
Split the image
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/docker-build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/docker-build b/bin/docker-build index 428dda8..1a4a985 100755 --- a/bin/docker-build +++ b/bin/docker-build @@ -5,5 +5,7 @@ set -e cd "$(dirname "$0")/.." IMAGE_NAME=${IMAGE_NAME:-$(basename "$PWD"):latest} +TOOLS_IMAGE=${TOOLS_IMAGE:-registry.gitlab.com/gitlab-org/security-products/license-management/tools:latest} -docker build . -t "$IMAGE_NAME" --pull +docker build -t "$TOOLS_IMAGE" -f Dockerfile.tools --pull . +docker build --cache-from "$TOOLS_IMAGE" -t "$IMAGE_NAME" . |
