Retheesh commited on
Commit
028b3cf
·
verified ·
1 Parent(s): 71e119c

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -4
  2. requirements.txt +8 -7
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use a minimal base image with Python 3.9 installed
2
- FROM python:3.9
3
 
4
  # Set the working directory inside the container to /app
5
  WORKDIR /app
@@ -8,12 +8,12 @@ WORKDIR /app
8
  COPY . .
9
 
10
  # Install Python dependencies listed in requirements.txt
11
- RUN pip3 install -r requirements.txt
12
 
13
  RUN useradd -m -u 1000 user
14
  USER user
15
  ENV HOME=/home/user \
16
- PATH=/home/user/.local/bin:$PATH
17
 
18
  WORKDIR $HOME/app
19
 
 
1
+ # Use Python 3.11 for better compatibility
2
+ FROM python:3.11-slim
3
 
4
  # Set the working directory inside the container to /app
5
  WORKDIR /app
 
8
  COPY . .
9
 
10
  # Install Python dependencies listed in requirements.txt
11
+ RUN pip3 install --no-cache-dir -r requirements.txt
12
 
13
  RUN useradd -m -u 1000 user
14
  USER user
15
  ENV HOME=/home/user \
16
+ PATH=/home/user/.local/bin:$PATH
17
 
18
  WORKDIR $HOME/app
19
 
requirements.txt CHANGED
@@ -1,7 +1,8 @@
1
- pandas==2.2.2
2
- huggingface_hub==0.32.6
3
- streamlit==1.43.2
4
- joblib==1.5.1
5
- scikit-learn==1.6.0
6
- mlflow==3.0.1
7
- numpy==2.1.3
 
 
1
+ pandas==2.1.4
2
+ huggingface_hub==0.20.3
3
+ streamlit==1.28.2
4
+ joblib==1.3.2
5
+ scikit-learn==1.3.2
6
+ mlflow==2.11.3
7
+ numpy==1.26.0
8
+ protobuf==4.25.3