eesfeg commited on
Commit
7fad3bc
Β·
1 Parent(s): 3a58a83
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -2,21 +2,16 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  build-essential \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Copy requirements first for better caching
11
  COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
 
13
 
14
- # Copy the rest of the app
15
  COPY . .
16
 
17
- # Expose port
18
  EXPOSE 7860
19
 
20
- # Run the app
21
- # βœ… CORRECT way to run Streamlit
22
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
9
  COPY requirements.txt .
10
+ RUN pip install --upgrade pip \
11
+ && pip install --no-cache-dir -r requirements.txt
12
 
 
13
  COPY . .
14
 
 
15
  EXPOSE 7860
16
 
17
+ CMD ["python", "-m", "streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]