jmanhype commited on
Commit
585cf0a
Β·
1 Parent(s): 846f937

Fix entrypoint script paths and working directory

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -140,6 +140,7 @@ which python\n\
140
  python --version\n\
141
  \n\
142
  # Run the app\n\
 
143
  python scripts/gradio/app_gradio_space.py\n' > $HOME/app/scripts/gradio/entrypoint.sh
144
 
145
  # Make the script executable
@@ -159,5 +160,6 @@ RUN echo "=== Final directory structure ===" && \
159
 
160
  EXPOSE 7860
161
 
162
- WORKDIR $HOME/app/scripts/gradio
163
- CMD ["./entrypoint.sh"]
 
 
140
  python --version\n\
141
  \n\
142
  # Run the app\n\
143
+ cd /home/user/app\n\
144
  python scripts/gradio/app_gradio_space.py\n' > $HOME/app/scripts/gradio/entrypoint.sh
145
 
146
  # Make the script executable
 
160
 
161
  EXPOSE 7860
162
 
163
+ # Set working directory to app root
164
+ WORKDIR $HOME/app
165
+ CMD ["./scripts/gradio/entrypoint.sh"]