Mahendra87 commited on
Commit
7e18957
·
verified ·
1 Parent(s): 78f747e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -10,6 +10,11 @@ COPY . .
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
 
 
 
 
 
13
  # Expose the port Streamlit will run on
14
  EXPOSE 7860
15
 
 
10
  # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Create a writable .streamlit directory and config file
14
+ RUN mkdir -p /app/.streamlit
15
+ RUN echo "[server]\nheadless = true\nport = 7860\nenableCORS = false\n" > /app/.streamlit/config.toml
16
+
17
+
18
  # Expose the port Streamlit will run on
19
  EXPOSE 7860
20