vish85521 commited on
Commit
e6f6779
·
verified ·
1 Parent(s): 8eb7a19

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -22,9 +22,11 @@ RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
22
  # Keep image focused on API serving for HF Spaces.
23
  COPY backend ./backend
24
  COPY simulation ./simulation
 
25
 
26
  RUN mkdir -p /app/backend/uploads /app/backend/reports
 
27
 
28
  EXPOSE 7860
29
 
30
- CMD ["sh", "-c", "cd /app/backend && uvicorn app.main:app --host 0.0.0.0 --port ${PORT}"]
 
22
  # Keep image focused on API serving for HF Spaces.
23
  COPY backend ./backend
24
  COPY simulation ./simulation
25
+ COPY start_hf_services.sh ./start_hf_services.sh
26
 
27
  RUN mkdir -p /app/backend/uploads /app/backend/reports
28
+ RUN chmod +x /app/start_hf_services.sh
29
 
30
  EXPOSE 7860
31
 
32
+ CMD ["/app/start_hf_services.sh"]