ameythakur commited on
Commit
544035f
·
verified ·
1 Parent(s): db369bb

DEPRESSION-DETECTION

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -3,11 +3,13 @@
3
  # PROJECT: DEPRESSION-DETECTION-USING-TWEETS
4
  # ==============================================================================
5
 
6
- FROM python:3.10-slim
7
 
8
  # Set environment variables
9
  ENV PYTHONDONTWRITEBYTECODE 1
10
  ENV PYTHONUNBUFFERED 1
 
 
11
 
12
  # Set work directory
13
  WORKDIR /app
@@ -17,10 +19,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
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
 
3
  # PROJECT: DEPRESSION-DETECTION-USING-TWEETS
4
  # ==============================================================================
5
 
6
+ FROM python:3.9-slim
7
 
8
  # Set environment variables
9
  ENV PYTHONDONTWRITEBYTECODE 1
10
  ENV PYTHONUNBUFFERED 1
11
+ # Force legacy setuptools behavior to prevent distutils build errors
12
+ ENV SETUPTOOLS_USE_DISTUTILS=stdlib
13
 
14
  # Set work directory
15
  WORKDIR /app
 
19
  build-essential \
20
  && rm -rf /var/lib/apt/lists/*
21
 
22
+ # Pre-install build dependencies to ensure wheels are preferred and builds are stable
23
+ RUN pip install --upgrade pip setuptools==57.5.0 wheel cython
24
 
25
+ # Install project dependencies
26
  # Note: Path is relative to the repository root where Dockerfile resides
27
  COPY source_code/requirements.txt ./
28
  RUN pip install --no-cache-dir -r requirements.txt