Merge "Allow symlinks in the container build"
This commit is contained in:
commit
8a8820aed2
@ -88,10 +88,14 @@ if [ "$MODE" = "release" ]; then
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! docker build ${BUILDFLAGS} -t "$FULLIMAGE" $IMGDIR; then
|
TMPDIR=$(mktemp -d /tmp/output.XXXXXXXXXX)
|
||||||
|
cp -aL $IMGDIR/* $TMPDIR
|
||||||
|
|
||||||
|
if ! docker build ${BUILDFLAGS} -t "$FULLIMAGE" $TMPDIR; then
|
||||||
echo "ERROR: failed to build $FULLIMAGE"
|
echo "ERROR: failed to build $FULLIMAGE"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
|
||||||
echo "Built: $FULLIMAGE"
|
echo "Built: $FULLIMAGE"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user