hari6677 commited on
Commit
115518b
·
verified ·
1 Parent(s): 484b421

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +16 -0
dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a Python 3.10 image built for deep learning environments
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
+ # The --no-cache-dir ensures a fresh install, reducing deployment errors.
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy all the application files (app.py, model, scaler, etc.)
13
+ COPY . .
14
+
15
+ # Command to run the Gradio app
16
+ CMD python app.py