From 5591bbd3022cff18249da415fea76b9d3cb652fc Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sat, 28 Oct 2023 19:10:34 +0200 Subject: [PATCH] privatebin : fix build image --- podman-privatebin/ci_build-images.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/podman-privatebin/ci_build-images.sh b/podman-privatebin/ci_build-images.sh index a5b22ca..c3e7f5f 100755 --- a/podman-privatebin/ci_build-images.sh +++ b/podman-privatebin/ci_build-images.sh @@ -11,10 +11,10 @@ buildfolder=/tmp/privatebin-$$ if ! podman image exists ${privatebin_image}:${privatebin_version}; then if git clone -b ${privatebin_version} --depth=1 https://github.com/PrivateBin/docker-nginx-fpm-alpine ${buildfolder} ; then - sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/docker-nginx-fpm-alpine/Dockerfile && + sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/Dockerfile && podman image build \ -t "${privatebin_image}":"${privatebin_version}" \ - ${buildfolder}/docker-nginx-fpm-alpine || retval=false + ${buildfolder} || retval=false podman image prune -a -f --filter dangling=true podman image prune -a -f --filter intermediate=true podman image rm -f $(podman image list -a -q -- docker.io/library/alpine)