ameythakur commited on
Commit
db369bb
·
verified ·
1 Parent(s): 624a45a

DEPRESSION-DETECTION

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -3,7 +3,7 @@
3
  # PROJECT: DEPRESSION-DETECTION-USING-TWEETS
4
  # ==============================================================================
5
 
6
- FROM python:3.11-slim
7
 
8
  # Set environment variables
9
  ENV PYTHONDONTWRITEBYTECODE 1
@@ -17,10 +17,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
17
  build-essential \
18
  && rm -rf /var/lib/apt/lists/*
19
 
 
 
 
20
  # Install dependencies
21
  # Note: Path is relative to the repository root where Dockerfile resides
22
  COPY source_code/requirements.txt ./
23
- RUN pip install --upgrade pip
24
  RUN pip install --no-cache-dir -r requirements.txt
25
 
26
  # Download spaCy model required for the NLP pipeline
 
3
  # PROJECT: DEPRESSION-DETECTION-USING-TWEETS
4
  # ==============================================================================
5
 
6
+ FROM python:3.10-slim
7
 
8
  # Set environment variables
9
  ENV PYTHONDONTWRITEBYTECODE 1
 
17
  build-essential \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ # Install build-time dependencies first to support legacy package builds
21
+ RUN pip install --upgrade pip setuptools==57.5.0 wheel
22
+
23
  # Install dependencies
24
  # Note: Path is relative to the repository root where Dockerfile resides
25
  COPY source_code/requirements.txt ./
 
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
  # Download spaCy model required for the NLP pipeline