Navya-Sree commited on
Commit
0c33599
·
verified ·
1 Parent(s): 991e350

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -1
Dockerfile CHANGED
@@ -1,7 +1,37 @@
1
- FROM python:3.13.5-slim
2
 
3
  WORKDIR /app
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  curl \
 
1
+ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ curl \
9
+ git \
10
+ && rm -rf /var/lib/apt/lists/*
11
+
12
+ # Copy requirements and install Python dependencies
13
+ COPY requirements.txt .
14
+ RUN pip install --upgrade pip
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy application code
18
+ COPY . .
19
+
20
+ # Create necessary directories
21
+ RUN mkdir -p data/raw data/processed data/external \
22
+ models/trained_models models/model_artifacts \
23
+ logs
24
+
25
+ # Expose port
26
+ EXPOSE 8501
27
+
28
+ # Set environment variables
29
+ ENV PYTHONPATH=/app
30
+
31
+ # Run the application
32
+ CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
33
+ WORKDIR /app
34
+
35
  RUN apt-get update && apt-get install -y \
36
  build-essential \
37
  curl \