Shalini94 commited on
Commit
b4354dc
·
verified ·
1 Parent(s): 3dfb4b8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,17 +1,18 @@
1
- # Use Python 3.9 base image
2
- FROM python:3.9-slim
3
 
4
  WORKDIR /app
5
 
6
- # Copy requirements and install deps
7
  COPY requirements.txt .
 
 
8
  RUN pip install --no-cache-dir -r requirements.txt
9
 
10
- # Copy application code
11
  COPY . .
12
 
13
- # Expose Streamlit port
14
  EXPOSE 8501
15
 
16
- # Run Streamlit app
17
- CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
1
+ FROM python:3.10-slim
 
2
 
3
  WORKDIR /app
4
 
5
+ # Copy requirements
6
  COPY requirements.txt .
7
+
8
+ # Install dependencies
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # Copy all files
12
  COPY . .
13
 
14
+ # Expose Streamlit default port
15
  EXPOSE 8501
16
 
17
+ # Run Streamlit app (FIXED HERE)
18
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]