mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00

Always pull the base container image (alpine:latest) before building our own container image. Else, in an environments that we haven't touched for a while, an older image may be used.
14 lines
338 B
Bash
Executable file
14 lines
338 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
TAG=dangerzone.rocks/dangerzone:latest
|
|
|
|
echo "Building container image"
|
|
podman build --pull dangerzone/ -f Dockerfile --tag $TAG
|
|
|
|
echo "Saving and compressing container image"
|
|
podman save $TAG | gzip > share/container.tar.gz
|
|
|
|
echo "Looking up the image id"
|
|
podman images -q --filter=reference=$TAG > share/image-id.txt
|