diff --git a/Dockerfile b/Dockerfile
index 6ba5921..1cb9592 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,6 +5,8 @@ LABEL Description="KiCad with KiBot and other automation scripts"
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y install -t buster-backports make wget curl rar bzip2 librsvg2-bin ghostscript && \
+ sed -i 's///g' /etc/ImageMagick-6/policy.xml && \
+ sed -i 's///g' /etc/ImageMagick-6/policy.xml && \
apt-get -y install --no-install-recommends imagemagick python3-qrcodegen git poppler-utils && \
curl -s https://api.github.com/repos/INTI-CMNB/KiAuto/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -i - && \
curl -s https://api.github.com/repos/INTI-CMNB/KiBoM/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -i - && \
diff --git a/ki6/Dockerfile b/ki6/Dockerfile
index 1fd2755..69afe7a 100644
--- a/ki6/Dockerfile
+++ b/ki6/Dockerfile
@@ -6,6 +6,8 @@ RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y install -t bullseye-backports curl && \
apt-get -y install make wget curl rar bzip2 librsvg2-bin ghostscript && \
+ sed -i 's///g' /etc/ImageMagick-6/policy.xml && \
+ sed -i 's///g' /etc/ImageMagick-6/policy.xml && \
apt-get -y install --no-install-recommends imagemagick python3-qrcodegen git poppler-utils && \
curl -s https://api.github.com/repos/INTI-CMNB/KiAuto/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -i - && \
curl -s https://api.github.com/repos/INTI-CMNB/KiBoM/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -i - && \
diff --git a/nightly/Dockerfile b/nightly/Dockerfile
index 6d74d3f..28448f0 100644
--- a/nightly/Dockerfile
+++ b/nightly/Dockerfile
@@ -5,6 +5,8 @@ LABEL Description="KiCad with KiBot and other automation scripts"
RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y install make wget curl rar bzip2 librsvg2-bin ghostscript && \
+ sed -i 's///g' /etc/ImageMagick-6/policy.xml && \
+ sed -i 's///g' /etc/ImageMagick-6/policy.xml && \
apt-get -y install --no-install-recommends imagemagick python3-qrcodegen git poppler-utils && \
curl -s https://api.github.com/repos/INTI-CMNB/KiAuto/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -i - && \
curl -s https://api.github.com/repos/INTI-CMNB/KiBoM/releases/latest | grep "browser_download_url.*deb" | cut -d : -f 2,3 | tr -d \" | wget -i - && \