Lokiiparihar commited on
Commit
64349b0
·
verified ·
1 Parent(s): 977e4af

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -9
Dockerfile CHANGED
@@ -1,19 +1,21 @@
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"]
 
1
+ FROM python:3.10-slim
2
+
3
+
4
+
5
 
 
6
  WORKDIR /app
7
 
 
8
  COPY app.py .
9
+
10
  COPY tuned_gradient_boosting_model.pkl .
11
+
12
  COPY requirements.txt .
13
 
14
+
15
+
16
+
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ EXPOSE 7860
 
20
 
21
+ CMD ["python", "app.py"]\