mirror of
https://github.com/0xsrb/AASRT.git
synced 2026-06-01 16:01:35 +02:00
fixed security issues
This commit is contained in:
+2
-2
@@ -76,9 +76,9 @@ USER aasrt
|
||||
# Expose Streamlit port
|
||||
EXPOSE 8501
|
||||
|
||||
# Health check
|
||||
# Health check using Python (curl not available in slim image)
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:8501/_stcore/health || exit 1
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8501/_stcore/health', timeout=5)" || exit 1
|
||||
|
||||
# Default command: Run Streamlit web interface
|
||||
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user