Spaces:
Running
Running
Tu Nombre commited on
Commit ·
3e6c321
1
Parent(s): 278d164
fix imagemagick policy
Browse files
main.py
CHANGED
|
@@ -134,7 +134,7 @@ pinned: false
|
|
| 134 |
---"""
|
| 135 |
dockerfile = """FROM python:3.10-slim
|
| 136 |
RUN apt-get update && apt-get install -y imagemagick ffmpeg && rm -rf /var/lib/apt/lists/*
|
| 137 |
-
RUN sed -i
|
| 138 |
WORKDIR /app
|
| 139 |
COPY requirements.txt .
|
| 140 |
RUN pip install -r requirements.txt
|
|
|
|
| 134 |
---"""
|
| 135 |
dockerfile = """FROM python:3.10-slim
|
| 136 |
RUN apt-get update && apt-get install -y imagemagick ffmpeg && rm -rf /var/lib/apt/lists/*
|
| 137 |
+
RUN sed -i "s/rights=\"none\"/rights=\"read|write\"/g" /etc/ImageMagick-7/policy.xml || true
|
| 138 |
WORKDIR /app
|
| 139 |
COPY requirements.txt .
|
| 140 |
RUN pip install -r requirements.txt
|