mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
13 lines
443 B
Bash
Executable file
13 lines
443 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "Building container image"
|
|
docker build container --platform linux/amd64 --tag dangerzone.rocks/dangerzone
|
|
|
|
echo "Saving container image"
|
|
docker save dangerzone.rocks/dangerzone -o share/container.tar
|
|
|
|
echo "Compressing container image"
|
|
gzip -f share/container.tar
|
|
|
|
echo "Looking up the image id"
|
|
docker image ls dangerzone.rocks/dangerzone | grep "dangerzone.rocks/dangerzone" | tr -s ' ' | cut -d' ' -f3 > share/image-id.txt
|