amitlals commited on
Commit
07950ff
·
1 Parent(s): 0c64fbb

Simplify dependencies and fix resolution conflicts

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -6
  2. requirements.txt +0 -3
Dockerfile CHANGED
@@ -21,16 +21,15 @@ WORKDIR /app
21
  # Copy requirements first for better caching
22
  COPY requirements.txt .
23
 
24
- # Install Python dependencies
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
- # Force compatible versions of gradio and huggingface_hub BEFORE sap-rpt-oss
29
- # gradio 4.44.1 requires huggingface_hub<0.25 (HfFolder was removed in 0.25+)
30
- RUN pip install --no-cache-dir "huggingface_hub>=0.23.0,<0.25.0" "gradio==4.44.1"
31
 
32
- # Install SAP-RPT-1-OSS from GitHub (after gradio to avoid version conflicts)
33
- RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss
34
 
35
  # Copy application code
36
  COPY . .
 
21
  # Copy requirements first for better caching
22
  COPY requirements.txt .
23
 
24
+ # Install Python dependencies (base packages only)
25
  RUN pip install --no-cache-dir --upgrade pip && \
26
  pip install --no-cache-dir -r requirements.txt
27
 
28
+ # Install compatible gradio and huggingface_hub versions together
29
+ RUN pip install --no-cache-dir "gradio==4.44.1" "huggingface_hub==0.24.7"
 
30
 
31
+ # Install SAP-RPT-1-OSS from GitHub (with --no-deps to avoid conflicts)
32
+ RUN pip install --no-cache-dir --no-deps git+https://github.com/SAP-samples/sap-rpt-1-oss || echo "SAP-RPT-1-OSS installation skipped"
33
 
34
  # Copy application code
35
  COPY . .
requirements.txt CHANGED
@@ -1,12 +1,9 @@
1
  pandas>=2.0.0
2
  numpy>=1.24.0
3
- git+https://github.com/SAP-samples/sap-rpt-1-oss
4
- huggingface_hub>=0.23.0,<0.25.0
5
  plotly>=5.17.0
6
  requests>=2.31.0
7
  python-dotenv>=1.0.0
8
  scikit-learn>=1.3.0
9
- gradio>=4.44.0
10
  pyarrow>=10.0.0
11
  pyzmq>=25.0.0
12
 
 
1
  pandas>=2.0.0
2
  numpy>=1.24.0
 
 
3
  plotly>=5.17.0
4
  requests>=2.31.0
5
  python-dotenv>=1.0.0
6
  scikit-learn>=1.3.0
 
7
  pyarrow>=10.0.0
8
  pyzmq>=25.0.0
9