Spaces:
Sleeping
Sleeping
Commit
·
706cfdf
1
Parent(s):
7d2c2bd
Debug: Re-enable printing magic-pdf.json contents
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -71,7 +71,7 @@ RUN . /opt/mineru_venv/bin/activate && \
|
|
| 71 |
sed -i 's|"device": "cpu"|"device": "cuda"|g' $HOME/magic-pdf.json
|
| 72 |
|
| 73 |
# Debug: Print the content of the user's config file
|
| 74 |
-
|
| 75 |
|
| 76 |
# Switch back to root temporarily to manage /root and /tmp
|
| 77 |
USER root
|
|
@@ -89,7 +89,7 @@ RUN mkdir -p /tmp/models/MFD/YOLO && \
|
|
| 89 |
chmod -R 755 /tmp/models
|
| 90 |
|
| 91 |
# Debug: Print the content of the root's config file
|
| 92 |
-
|
| 93 |
|
| 94 |
# Switch back to the non-root user for running the app and copying files
|
| 95 |
USER user
|
|
|
|
| 71 |
sed -i 's|"device": "cpu"|"device": "cuda"|g' $HOME/magic-pdf.json
|
| 72 |
|
| 73 |
# Debug: Print the content of the user's config file
|
| 74 |
+
RUN echo "--- Contents of $HOME/magic-pdf.json --- " && cat $HOME/magic-pdf.json && echo "--- End of $HOME/magic-pdf.json --- "
|
| 75 |
|
| 76 |
# Switch back to root temporarily to manage /root and /tmp
|
| 77 |
USER root
|
|
|
|
| 89 |
chmod -R 755 /tmp/models
|
| 90 |
|
| 91 |
# Debug: Print the content of the root's config file
|
| 92 |
+
RUN echo "--- Contents of /root/magic-pdf.json --- " && cat /root/magic-pdf.json && echo "--- End of /root/magic-pdf.json --- "
|
| 93 |
|
| 94 |
# Switch back to the non-root user for running the app and copying files
|
| 95 |
USER user
|