Rizwan9 commited on
Commit
c042d28
·
verified ·
1 Parent(s): 02cb96d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -1,15 +1,8 @@
1
  FROM python:3.10-slim
2
-
3
- ENV PYTHONUNBUFFERED=1
4
- ARG BUILD_ID=3
5
  WORKDIR /app
6
-
7
  COPY requirements.txt .
8
  RUN pip install --no-cache-dir -r requirements.txt
9
-
10
  COPY app.py best_model_random_forest.joblib ./
11
  ENV MODEL_PATH=best_model_random_forest.joblib
12
-
13
  EXPOSE 5000
14
- # ✅ Keep CMD on ONE LINE
15
- CMD ["gunicorn","-w","2","-k","gthread","--threads","2","--timeout","120","-b","0.0.0.0:5000","app:app"]
 
1
  FROM python:3.10-slim
 
 
 
2
  WORKDIR /app
 
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
 
5
  COPY app.py best_model_random_forest.joblib ./
6
  ENV MODEL_PATH=best_model_random_forest.joblib
 
7
  EXPOSE 5000
8
+ CMD ["gunicorn","-w","2","-k","gthread","--threads","2","--timeout","120","-b","0.0.0.0:5000","app:app"]