privatebin : fix build image
This commit is contained in:
parent
133e178d05
commit
5591bbd302
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue