keerthas commited on
Commit
8fca9a6
·
verified ·
1 Parent(s): fd7a3ef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -12
Dockerfile CHANGED
@@ -1,19 +1,10 @@
1
- # Use Python base image
2
- FROM python:3.11-slim
3
-
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy files
8
  COPY requirements.txt .
9
- COPY app.py .
10
- COPY best_model.pkl .
11
-
12
- # Install dependencies
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Expose port
16
- EXPOSE 7860
17
 
18
- # Run Flask API
19
  CMD ["python", "app.py"]
 
1
+ FROM python:3.9-slim
 
 
 
2
  WORKDIR /app
3
 
 
4
  COPY requirements.txt .
 
 
 
 
5
  RUN pip install --no-cache-dir -r requirements.txt
6
 
7
+ COPY . .
 
8
 
9
+ EXPOSE 7860
10
  CMD ["python", "app.py"]