Pratik26Dec commited on
Commit
833b970
·
verified ·
1 Parent(s): 025d52b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -11
Dockerfile CHANGED
@@ -1,19 +1,12 @@
1
- # Use a slim Python image as a base
2
  FROM python:3.10-slim
3
 
4
- # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Copy the requirements file and install dependencies
8
  COPY requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy the Flask app and the serialized model
12
- COPY app.py .
13
- COPY extraalearn_best_model.joblib .
14
 
15
- # Expose port 5000 for the Flask app
16
- EXPOSE 5000
17
 
18
- # Command to run the application using Gunicorn for production
19
- CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
 
6
 
7
+ RUN pip install --upgrade pip setuptools wheel
8
+ RUN pip install --no-cache-dir -r requirements.txt
 
9
 
10
+ COPY . .
 
11
 
12
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]