Pushpak21 commited on
Commit
740ad3c
·
verified ·
1 Parent(s): fd9d965

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -0
  2. requirements.txt +2 -1
Dockerfile CHANGED
@@ -1,9 +1,14 @@
1
  FROM python:3.9-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY . .
6
 
 
7
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
8
 
 
9
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy everything into the container
7
  COPY . .
8
 
9
+ # Install dependencies
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
+ # Run the app using gunicorn with 4 workers
13
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
14
+
requirements.txt CHANGED
@@ -4,4 +4,5 @@ joblib
4
  pandas
5
  numpy
6
  scikit-learn
7
- xgboost
 
 
4
  pandas
5
  numpy
6
  scikit-learn
7
+ xgboost
8
+ gunicorn