ishworrsubedii commited on
Commit
b110fef
·
1 Parent(s): 5b1e9ea

update: dockerfile ffmpeg permission

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -33,15 +33,12 @@ RUN chown -R appuser:appuser /app && \
33
  chmod -R 755 /app && \
34
  chmod -R 777 /tmp
35
 
36
- # Install Python dependencies
37
- RUN pip3 install --user -r requirements.txt
38
 
39
- # Update PATH for user's pip packages
40
- ENV PATH="/home/appuser/.local/bin:${PATH}"
41
-
42
- # Configure ImageMagick with more permissive policy
43
  RUN mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xml.bak || true
44
- RUN echo '<policymap> \
45
  <policy domain="resource" name="memory" value="512MiB"/> \
46
  <policy domain="resource" name="map" value="1GiB"/> \
47
  <policy domain="resource" name="width" value="16KP"/> \
 
33
  chmod -R 755 /app && \
34
  chmod -R 777 /tmp
35
 
36
+ # Install Python dependencies globally
37
+ RUN pip3 install -r requirements.txt
38
 
39
+ # Configure ImageMagick with a permissive policy
 
 
 
40
  RUN mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xml.bak || true
41
+ RUN echo '<policymap>\
42
  <policy domain="resource" name="memory" value="512MiB"/> \
43
  <policy domain="resource" name="map" value="1GiB"/> \
44
  <policy domain="resource" name="width" value="16KP"/> \