Peter Michael Gits Claude commited on
Commit
5f16ab3
·
1 Parent(s): 57bfde1

debug: Add file listing and use python -m streamlit

Browse files

- Add ls command to debug file visibility
- Use python -m streamlit instead of direct streamlit command
- Troubleshoot 'No such file or directory' runtime error

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -39,6 +39,7 @@ USER root
39
  COPY . /home/app/
40
  COPY hello_world.py /home/app/app.py
41
  RUN chown -R app:app /home/app/
 
42
 
43
  # Switch back to app user for runtime
44
  USER app
@@ -55,5 +56,5 @@ ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
55
  # Health check
56
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
57
 
58
- # Run Streamlit
59
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
39
  COPY . /home/app/
40
  COPY hello_world.py /home/app/app.py
41
  RUN chown -R app:app /home/app/
42
+ RUN ls -la /home/app/ # Debug: list files to verify copy worked
43
 
44
  # Switch back to app user for runtime
45
  USER app
 
56
  # Health check
57
  HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
58
 
59
+ # Verify files exist and run Streamlit
60
+ CMD ["sh", "-c", "ls -la /home/app/ && python -m streamlit run app.py --server.port=7860 --server.address=0.0.0.0"]