DaCrow13 commited on
Commit
5ea22fe
·
1 Parent(s): 834ca3f

fix: add curl and streamlit proxy flags

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. scripts/start_space.sh +5 -1
Dockerfile CHANGED
@@ -13,6 +13,7 @@ RUN apt-get update && apt-get install -y \
13
  dos2unix \
14
  nginx \
15
  procps \
 
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
  # Create a non-root user
 
13
  dos2unix \
14
  nginx \
15
  procps \
16
+ curl \
17
  && rm -rf /var/lib/apt/lists/*
18
 
19
  # Create a non-root user
scripts/start_space.sh CHANGED
@@ -75,4 +75,8 @@ curl -v http://127.0.0.1:8000/health || echo "FastAPI health check failed!"
75
 
76
  echo "$(date) - Starting Streamlit application on 0.0.0.0:8501..."
77
  export API_BASE_URL="http://127.0.0.1:8000"
78
- streamlit run hopcroft_skill_classification_tool_competition/streamlit_app.py --server.port 8501 --server.address 0.0.0.0
 
 
 
 
 
75
 
76
  echo "$(date) - Starting Streamlit application on 0.0.0.0:8501..."
77
  export API_BASE_URL="http://127.0.0.1:8000"
78
+ streamlit run hopcroft_skill_classification_tool_competition/streamlit_app.py \
79
+ --server.port 8501 \
80
+ --server.address 0.0.0.0 \
81
+ --server.enableCORS=false \
82
+ --server.enableXsrfProtection=false