Rizwan9 commited on
Commit
e0c6d53
·
verified ·
1 Parent(s): a05f9e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,14 +1,15 @@
1
-
2
  FROM python:3.10-slim
 
 
 
3
  WORKDIR /app
4
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
- COPY app.py best_model_random_forest.joblib ./
 
9
 
10
- ENV MODEL_PATH=best_model_random_forest.joblib
11
  EXPOSE 5000
12
-
13
- CMD ["gunicorn", "--workers", "2", "--threads", "2", "--timeout", "120",
14
- "--bind", "0.0.0.0:5000", "app:app"]
 
 
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 superkart_sales_forecast.joblib ./
11
+ ENV MODEL_PATH=superkart_sales_forecast.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"]