Always pull base image when building ours

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.
This commit is contained in:
Alex Pyrgiotis 2023-08-02 13:47:59 +03:00
parent 0296844e36
commit 03df60db5f
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
3 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@ set -e
TAG=dangerzone.rocks/dangerzone:latest
echo "Building container image"
podman build dangerzone/ -f Dockerfile --tag $TAG
podman build --pull dangerzone/ -f Dockerfile --tag $TAG
echo "Saving and compressing container image"
podman save $TAG | gzip > share/container.tar.gz

View file

@ -5,7 +5,7 @@ set -e
TAG=dangerzone.rocks/dangerzone:latest
echo "Building container image"
docker build dangerzone/ -f Dockerfile --tag $TAG
docker build --pull dangerzone/ -f Dockerfile --tag $TAG
echo "Saving and compressing container image"
docker save $TAG | gzip > share/container.tar.gz

View file

@ -9,6 +9,7 @@ def main():
[
"docker",
"build",
"--pull",
"dangerzone/",
"-f",
"Dockerfile",