Spaces:
Sleeping
Sleeping
Commit
·
2ed0d98
1
Parent(s):
e1dcbde
update: dockerfile- imagemagick policy
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -12,8 +12,8 @@ RUN apt-get update && apt-get install -y \
|
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
# Modify ImageMagick security policy to allow operations in /tmp
|
15 |
-
RUN sed -i '
|
16 |
-
RUN sed -i '
|
17 |
|
18 |
# Copy requirements.txt and install dependencies
|
19 |
COPY requirements.txt ./
|
|
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
# Modify ImageMagick security policy to allow operations in /tmp
|
15 |
+
RUN sed -i 's#<policy domain="coder" rights="none" pattern="PDF" />#<policy domain="coder" rights="read|write" pattern="PDF" />#' /etc/ImageMagick-6/policy.xml
|
16 |
+
RUN sed -i 's#<policy domain="path" rights="none" pattern="/tmp/" />#<policy domain="path" rights="read|write" pattern="/tmp/" />#' /etc/ImageMagick-6/policy.xml
|
17 |
|
18 |
# Copy requirements.txt and install dependencies
|
19 |
COPY requirements.txt ./
|