Lokiiparihar commited on
Commit
486448b
·
verified ·
1 Parent(s): fd23b87

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM python:3.10
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy files
8
+ COPY app.py .
9
+ COPY tuned_gradient_boosting_model.pkl .
10
+ COPY requirements.txt .
11
+
12
+ # Install dependencies
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Expose port
16
+ EXPOSE 5000
17
+
18
+ # Run the app
19
+ CMD ["python", "app.py"]