Samyu29 commited on
Commit
351dfd2
·
verified ·
1 Parent(s): f0550c1

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Use official Python 3.12 image
3
+ FROM python:3.12-slim
4
+
5
+ # Set working directory
6
+ WORKDIR /app
7
+
8
+ # Copy requirements file first for caching
9
+ COPY requirements.txt .
10
+
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy model and scripts into container
15
+ COPY model.joblib .
16
+ COPY preprocessor.joblib .
17
+ COPY serve_model.py .
18
+
19
+ # Expose port (optional for API)
20
+ EXPOSE 8080
21
+
22
+ # Command to run the API/server script
23
+ CMD ["python", "serve_model.py"]