Spaces:
Sleeping
Sleeping
Commit ·
5cc8a69
1
Parent(s): 6bba0e5
Use find to locate policy.xml
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Fix ImageMagick policy to allow text rendering
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
# Create user for Hugging Face Spaces
|
| 18 |
RUN useradd -m -u 1000 user
|
|
|
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
# Fix ImageMagick policy to allow text rendering
|
| 15 |
+
# Use find to locate policy.xml as the path varies by version
|
| 16 |
+
RUN find /etc -name "policy.xml" -exec sed -i 's/none/read,write/g' {} +
|
| 17 |
|
| 18 |
# Create user for Hugging Face Spaces
|
| 19 |
RUN useradd -m -u 1000 user
|