mubashirhussaindev commited on
Commit
1efa592
·
verified ·
1 Parent(s): 0161991

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -2,12 +2,12 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # System dependencies (optional)
6
  RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
7
 
8
  # Install Python dependencies
9
  COPY requirements.txt .
10
- RUN pip install --no-cache-dir -r requirements.txt
11
 
12
  # Copy application files
13
  COPY . .
@@ -20,5 +20,5 @@ ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
20
 
21
  EXPOSE 7860
22
 
23
- # Start the app
24
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
5
+ # System dependencies
6
  RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*
7
 
8
  # Install Python dependencies
9
  COPY requirements.txt .
10
+ RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
11
 
12
  # Copy application files
13
  COPY . .
 
20
 
21
  EXPOSE 7860
22
 
23
+ # Start the app (uses environment variable for port)
24
+ CMD ["streamlit", "run", "app.py"]