jmanhype
commited on
Commit
Β·
fc9f185
1
Parent(s):
92569bc
Fix entrypoint script creation and execution
Browse files- Dockerfile +4 -10
Dockerfile
CHANGED
@@ -38,24 +38,18 @@ RUN echo "export PYTHONPATH=\${PYTHONPATH}:/home/user/app/MuseV:/home/user/app/M
|
|
38 |
WORKDIR /home/user/app/MuseV/scripts/gradio/
|
39 |
|
40 |
# Create entrypoint script
|
41 |
-
RUN
|
42 |
echo "=== Starting MuseV Gradio App ==="\n\
|
43 |
whoami\n\
|
44 |
-
\n\
|
45 |
-
# Activate conda environment\n\
|
46 |
source /opt/conda/etc/profile.d/conda.sh\n\
|
47 |
conda activate musev\n\
|
48 |
-
\n\
|
49 |
-
# Print environment info\n\
|
50 |
echo "Python: $(which python)"\n\
|
51 |
echo "Python version: $(python --version)"\n\
|
52 |
echo "PYTHONPATH: $PYTHONPATH"\n\
|
53 |
-
\n\
|
54 |
-
# Run the app\n\
|
55 |
cd /home/user/app/MuseV/scripts/gradio\n\
|
56 |
-
python app_gradio_space.py' >
|
57 |
-
|
58 |
|
59 |
EXPOSE 7860
|
60 |
|
61 |
-
|
|
|
38 |
WORKDIR /home/user/app/MuseV/scripts/gradio/
|
39 |
|
40 |
# Create entrypoint script
|
41 |
+
RUN printf '#!/bin/bash\n\
|
42 |
echo "=== Starting MuseV Gradio App ==="\n\
|
43 |
whoami\n\
|
|
|
|
|
44 |
source /opt/conda/etc/profile.d/conda.sh\n\
|
45 |
conda activate musev\n\
|
|
|
|
|
46 |
echo "Python: $(which python)"\n\
|
47 |
echo "Python version: $(python --version)"\n\
|
48 |
echo "PYTHONPATH: $PYTHONPATH"\n\
|
|
|
|
|
49 |
cd /home/user/app/MuseV/scripts/gradio\n\
|
50 |
+
python app_gradio_space.py' > entrypoint.sh && \
|
51 |
+
chmod +x entrypoint.sh
|
52 |
|
53 |
EXPOSE 7860
|
54 |
|
55 |
+
ENTRYPOINT ["/bin/bash", "/home/user/app/MuseV/scripts/gradio/entrypoint.sh"]
|