Akwbw commited on
Commit
e464ddd
·
verified ·
1 Parent(s): 854d6ae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -16,7 +16,7 @@ WORKDIR /app
16
  # Requirements file copy
17
  COPY requirements.txt .
18
 
19
- # Streamlit install karna (Fix: Removed the problematic flag)
20
  RUN pip3 install --no-cache-dir -r requirements.txt
21
 
22
  # Baaki files copy
@@ -28,5 +28,5 @@ RUN chmod -R 777 /app
28
  # Port expose
29
  EXPOSE 7860
30
 
31
- # App run karna
32
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
16
  # Requirements file copy
17
  COPY requirements.txt .
18
 
19
+ # Streamlit install karna
20
  RUN pip3 install --no-cache-dir -r requirements.txt
21
 
22
  # Baaki files copy
 
28
  # Port expose
29
  EXPOSE 7860
30
 
31
+ # 👇 ASAL TABDEELI YAHAN HAI (CORS aur XSRF disable kiya hai)
32
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false", "--server.maxUploadSize=200"]