Jandayl commited on
Commit
7ea9cd8
·
1 Parent(s): 6c46409

modified dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -7
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.11-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
@@ -14,16 +14,10 @@ WORKDIR /app
14
  # Upgrade pip
15
  RUN pip install --upgrade pip setuptools wheel
16
 
17
-
18
  # Copy requirements first
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- RUN python -m spacy download tl_calamancy_md || \
23
- python -c "import calamancy; calamancy.load('tl_calamancy_md')"
24
-
25
- COPY model_loader.py .
26
- RUN python model_loader.py
27
  # Copy the rest of your app
28
  COPY . .
29
 
 
1
+ FROM python:3.10-slim
2
 
3
  # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
 
14
  # Upgrade pip
15
  RUN pip install --upgrade pip setuptools wheel
16
 
 
17
  # Copy requirements first
18
  COPY requirements.txt .
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
 
 
 
 
 
21
  # Copy the rest of your app
22
  COPY . .
23
 
requirements.txt CHANGED
@@ -3,7 +3,7 @@ Flask-CORS==4.0.0
3
  joblib==1.3.2
4
  pandas==2.2.2
5
  numpy==1.26.4
6
- scikit-learn==1.8.0
7
  calamancy==0.2.0
8
  gunicorn==21.2.0
9
  setuptools>=69.0.0
 
3
  joblib==1.3.2
4
  pandas==2.2.2
5
  numpy==1.26.4
6
+ scikit-learn==1.7.2
7
  calamancy==0.2.0
8
  gunicorn==21.2.0
9
  setuptools>=69.0.0