diff --git a/release/docker/package_docker b/release/docker/package_docker index b921a4c19..b12c4ca61 100755 --- a/release/docker/package_docker +++ b/release/docker/package_docker @@ -55,7 +55,8 @@ image_name="memgraph:${version}" image_package_name="memgraph-${version}-docker.tar.gz" # Build docker image. -docker build -t ${image_name} ${tag_latest} -f ${dockerfile_path} \ +# NOTE: --pull is here to always pull that latest base image because of security patches. +docker build --pull -t ${image_name} ${tag_latest} -f ${dockerfile_path} \ --build-arg BINARY_NAME=${package_name} \ --build-arg EXTENSION=${extension} \ --build-arg TARGETARCH="" .