Spaces:
Sleeping
Sleeping
Commit
·
71441db
1
Parent(s):
8ed061f
Debug: Print magic-pdf.json contents during build
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -70,11 +70,17 @@ RUN . /opt/mineru_venv/bin/activate && \
|
|
70 |
cp $HOME/app/magic-pdf.json $HOME/magic-pdf.json && \
|
71 |
sed -i 's|"device": "cpu"|"device": "cuda"|g' $HOME/magic-pdf.json
|
72 |
|
|
|
|
|
|
|
73 |
# Switch back to root temporarily to copy the final config to /root
|
74 |
USER root
|
75 |
RUN cp $HOME/magic-pdf.json /root/magic-pdf.json && \
|
76 |
chown root:root /root/magic-pdf.json
|
77 |
|
|
|
|
|
|
|
78 |
# Switch back to the non-root user for running the app and copying files
|
79 |
USER user
|
80 |
|
|
|
70 |
cp $HOME/app/magic-pdf.json $HOME/magic-pdf.json && \
|
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 copy the final config to /root
|
77 |
USER root
|
78 |
RUN cp $HOME/magic-pdf.json /root/magic-pdf.json && \
|
79 |
chown root:root /root/magic-pdf.json
|
80 |
|
81 |
+
# Debug: Print the content of the root's config file
|
82 |
+
RUN echo "--- Contents of /root/magic-pdf.json --- " && cat /root/magic-pdf.json && echo "--- End of /root/magic-pdf.json --- "
|
83 |
+
|
84 |
# Switch back to the non-root user for running the app and copying files
|
85 |
USER user
|
86 |
|