triflix commited on
Commit
f2ae5b8
·
verified ·
1 Parent(s): b703fc4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Python slim image
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and model
8
+ COPY requirements.txt .
9
+ COPY student_performance_model.pkl .
10
+
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy application code
15
+ COPY . /app
16
+
17
+ # Expose Hugging Face Spaces port
18
+ EXPOSE 7860
19
+
20
+ # Run Uvicorn server on port 7860
21
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]