simran0608 commited on
Commit
dc55fde
·
verified ·
1 Parent(s): c4efd9b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -23,7 +23,7 @@ RUN groupadd --system appuser && useradd --system --gid appuser appuser
23
  RUN chown -R appuser:appuser /app
24
 
25
  # Set the HOME environment variable for the non-root user.
26
- # This is the crucial fix for the PermissionError.
27
  ENV HOME=/app
28
 
29
  # Switch to the non-root user for security
@@ -34,5 +34,7 @@ EXPOSE 8501
34
 
35
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
36
 
37
- # Run the app and disable telemetry to prevent writing config files
38
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--global.gatherUsageStats=false", "--browser.gatherUsageStats=false"]
 
 
 
23
  RUN chown -R appuser:appuser /app
24
 
25
  # Set the HOME environment variable for the non-root user.
26
+ # THIS IS THE CRITICAL FIX for the original PermissionError.
27
  ENV HOME=/app
28
 
29
  # Switch to the non-root user for security
 
34
 
35
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
36
 
37
+ # --- UPDATED ENTRYPOINT ---
38
+ # Removed the unsupported `--global.gatherUsageStats` flag.
39
+ # The `--browser.gatherUsageStats=false` is still valid and good practice.
40
+ ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]