tanbushi commited on
Commit
df20c9a
·
1 Parent(s): 24491aa

Add more PATH and env debugging to start.sh

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -47,7 +47,11 @@ RUN printf '#!/bin/sh\n\
47
  echo "Starting OpenCode AI Web Server..."\n\
48
  echo "Server will be available at http://0.0.0.0:7860 "\n\
49
  echo "OpenAPI documentation available at http://0.0.0.0:7860/doc "\n\
50
- which opencode\n\
 
 
 
 
51
  exec /usr/local/bin/opencode serve --hostname 0.0.0.0 --port 7860\n\
52
  ' > /home/opencode/.local/bin/start.sh && \
53
  chmod +x /home/opencode/.local/bin/start.sh
 
47
  echo "Starting OpenCode AI Web Server..."\n\
48
  echo "Server will be available at http://0.0.0.0:7860 "\n\
49
  echo "OpenAPI documentation available at http://0.0.0.0:7860/doc "\n\
50
+ echo "Current PATH before export: $PATH"\n\
51
+ ls -l /usr/local/bin/opencode\n\
52
+ export PATH="/usr/local/bin:$PATH"\n\
53
+ echo "Current PATH after export: $PATH"\n\
54
+ env\n\
55
  exec /usr/local/bin/opencode serve --hostname 0.0.0.0 --port 7860\n\
56
  ' > /home/opencode/.local/bin/start.sh && \
57
  chmod +x /home/opencode/.local/bin/start.sh