Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 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"]
|