MalikSahib1 commited on
Commit
5308261
·
verified ·
1 Parent(s): 1d96340

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -16,7 +16,10 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  COPY . .
17
 
18
  # 6. Expose the port the app runs on
19
- EXPOSE 7860
 
 
 
20
 
21
- # 7. Define the command to run the application using Gunicorn
22
  CMD ["gunicorn", "--workers=1", "--threads=4", "--timeout=600", "--preload", "--bind=0.0.0.0:7860", "app:app"]
 
16
  COPY . .
17
 
18
  # 6. Expose the port the app runs on
19
+ # ... (ooper ka saara code waisa hi rahega) ...
20
+
21
+ # NAYI LINE: Server start karne se pehle hamari model loading script chalao
22
+ RUN python load_model.py
23
 
24
+ EXPOSE 7860
25
  CMD ["gunicorn", "--workers=1", "--threads=4", "--timeout=600", "--preload", "--bind=0.0.0.0:7860", "app:app"]