AjaykumarPilla commited on
Commit
5ae8fba
·
verified ·
1 Parent(s): addabb7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -13
Dockerfile CHANGED
@@ -2,22 +2,15 @@ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y \
7
- libgomp1 \
8
- gcc \
9
- g++ \
10
- && rm -rf /var/lib/apt/lists/*
11
-
12
- # Install Python dependencies
13
  COPY requirements.txt .
14
- RUN pip install --no-cache-dir -r requirements.txt && pip cache purge
15
 
16
- # Copy application files
17
- COPY . .
 
 
 
18
 
19
- # Expose Streamlit port
20
  EXPOSE 8501
21
 
22
- # Run Streamlit app
23
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
5
  COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY app.py .
9
+ COPY model.py .
10
+ COPY utils.py .
11
+ COPY models/delay_model.pth models/delay_model.pth
12
+ COPY models/scaler.pkl models/scaler.pkl
13
 
 
14
  EXPOSE 8501
15
 
 
16
  CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]