sumitsinha2603 commited on
Commit
bc4f619
·
verified ·
1 Parent(s): 81674aa

Add Streamlit app files

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -11
Dockerfile CHANGED
@@ -1,20 +1,24 @@
 
1
  FROM python:3.10
2
 
3
  # Set working directory
4
  WORKDIR /app
5
 
6
- # Copy dependencies
7
- COPY requirements.txt .
8
- RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy all files
11
- COPY . .
 
 
 
 
12
 
13
- # Hugging Face requires the app to use $PORT
14
- ENV PORT=7860
15
-
16
- # Expose port
17
  EXPOSE 7860
18
 
19
- # Start Streamlit on the correct port
20
- CMD streamlit run app.py --server.port $PORT --server.address 0.0.0.0
 
 
 
 
1
+ # Use official Python image
2
  FROM python:3.10
3
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Copy app files
8
+ COPY . /app
 
9
 
10
+ # Install required Python packages
11
+ RUN pip install --no-cache-dir \
12
+ streamlit \
13
+ pandas \
14
+ scikit-learn \
15
+ huggingface_hub
16
 
17
+ # Streamlit port
 
 
 
18
  EXPOSE 7860
19
 
20
+ # Disable usage tracking
21
+ ENV STREAMLIT_BROWSER_GATHERUSAGESTATS=false
22
+
23
+ # Start the Streamlit app
24
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]