diff --git a/scripts/package b/scripts/package index 182039245..09551d2e5 100755 --- a/scripts/package +++ b/scripts/package @@ -30,6 +30,10 @@ IMAGE=${REPO}/${PROJECT}:${TAG} cp /usr/src/tgt/pkg/tgt_*.deb ./bin/ +# update base image to get latest changes +BASE_IMAGE=`grep FROM package/Dockerfile | awk '{print $2}'` +docker pull ${BASE_IMAGE} + docker build --build-arg ARCH=${ARCH} -t ${IMAGE} -f package/Dockerfile . echo Built ${IMAGE}