dangerzone/install/macos/build-image.sh
Alex Pyrgiotis d768099912
Grab just the image ID
When building the image, grab the image id using `-q`, which removes all
the decorations in the output and just keeps the image ID.
2023-03-09 19:04:59 +02:00

14 lines
315 B
Bash
Executable file

#!/bin/sh
set -e
TAG=dangerzone.rocks/dangerzone:latest
echo "Building container image"
docker build container --tag $TAG
echo "Saving and compressing container image"
docker save $TAG | gzip > share/container.tar.gz
echo "Looking up the image id"
docker images -q --filter=reference=$TAG > share/image-id.txt