Use gzip for packaging docker image (#348)

This commit is contained in:
Antonio Andelic 2022-02-07 15:50:43 +01:00 committed by GitHub
parent 4fd8bdce4c
commit b23f88c607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,6 @@ image_package_name="memgraph-${version}-docker.tar.gz"
# Build docker image.
docker build -t ${image_name} ${tag_latest} -f ${dockerfile_path} --build-arg release=${package_name}.${extension} .
docker save ${image_name} ${latest_image} > ${image_package_name}
docker save ${image_name} ${latest_image} | gzip > ${image_package_name}
rm "${package_name}.${extension}"
echo "Built Docker image at '${working_dir}/${image_package_name}'"