drrobot9 commited on
Commit
28baf7a
·
verified ·
1 Parent(s): f9871be

push updated backend changes and auto start buiding

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
+
6
+ # Set working directory
7
+ WORKDIR /app
8
+
9
+ # Copy project files
10
+ COPY . /app
11
+
12
+ # Install Python dependencies
13
+ RUN pip install --no-cache-dir --upgrade pip \
14
+ && pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Expose the port Hugging Face Spaces expects
17
+ EXPOSE 7860
18
+
19
+ # Run FastAPI with Uvicorn
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]