Spaces:
Running
Running
Tu Nombre commited on
Commit ·
278d164
1
Parent(s): e82b746
imagemagick en cliente
Browse files
main.py
CHANGED
|
@@ -133,6 +133,8 @@ sdk: docker
|
|
| 133 |
pinned: false
|
| 134 |
---"""
|
| 135 |
dockerfile = """FROM python:3.10-slim
|
|
|
|
|
|
|
| 136 |
WORKDIR /app
|
| 137 |
COPY requirements.txt .
|
| 138 |
RUN pip install -r requirements.txt
|
|
|
|
| 133 |
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 's|<policy domain="path" rights="none" pattern="@\*"/>||g' /etc/ImageMagick-6/policy.xml || true
|
| 138 |
WORKDIR /app
|
| 139 |
COPY requirements.txt .
|
| 140 |
RUN pip install -r requirements.txt
|