#!/usr/bin/env bash # # SPDX-License-Identifier: Apache-2.0 # Copyright (c) 2024 Matter Labs # # This script is used to replace the signature of a gramine docker image with a new one. # Usage: ./replace-sig.sh # Example: ./replace-sig.sh tva tee-vault-admin.sig /app/tee-vault-admin.sig DOCKERFILE="Dockerfile-tmp-$$" trap 'rm -f $DOCKERFILE' EXIT cat > "$DOCKERFILE" <